修复常见问题删除问题
This commit is contained in:
@@ -172,7 +172,7 @@ const Tmpquestion_txt = {
|
|||||||
return id;
|
return id;
|
||||||
};
|
};
|
||||||
function handledelete(index){//删除
|
function handledelete(index){//删除
|
||||||
props.model.data[0].data.splice(index,1);
|
props.model.data.splice(index,1);
|
||||||
};
|
};
|
||||||
onMounted(function(){//排序
|
onMounted(function(){//排序
|
||||||
Sortable.create(DomDiv.value, {
|
Sortable.create(DomDiv.value, {
|
||||||
|
|||||||
@@ -349,16 +349,19 @@
|
|||||||
data:[],
|
data:[],
|
||||||
name:fitem.tdataname,
|
name:fitem.tdataname,
|
||||||
}
|
}
|
||||||
for (let findex = 0; findex < fitem.tdata.length; findex++) {
|
if(fitem.tdata && fitem.tdata.length){
|
||||||
const ditem = fitem.tdata[findex];
|
for (let findex = 0; findex < fitem.tdata.length; findex++) {
|
||||||
fstr.data.push(
|
const ditem = fitem.tdata[findex];
|
||||||
{
|
fstr.data.push(
|
||||||
key:0,
|
{
|
||||||
title:ditem.title || '',
|
key:0,
|
||||||
answer:ditem.answer || '',
|
title:ditem.title || '',
|
||||||
},
|
answer:ditem.answer || '',
|
||||||
)
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
str.data.push(fstr);
|
str.data.push(fstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -420,9 +420,9 @@ elseif($method == 'admin_init') {
|
|||||||
$ctype = 1;
|
$ctype = 1;
|
||||||
$data = addslashes(serialize($userstats));
|
$data = addslashes(serialize($userstats));
|
||||||
$db->query("REPLACE INTO {$tablepre}syscache (cname, ctype, dateline, data) VALUES ('userstats', '$ctype', '".time()."', '$data')");
|
$db->query("REPLACE INTO {$tablepre}syscache (cname, ctype, dateline, data) VALUES ('userstats', '$ctype', '".time()."', '$data')");
|
||||||
|
exit("<script>window.location.href='index.php?step=5';</script>");
|
||||||
header("location: index.php?step=5");
|
//header("location: index.php?step=5");
|
||||||
exit();
|
//exit();
|
||||||
}
|
}
|
||||||
show_form($form_admin_init_items, $error_msg);
|
show_form($form_admin_init_items, $error_msg);
|
||||||
|
|
||||||
|
|||||||
0
library/index.htm
Normal file
0
library/index.htm
Normal file
Reference in New Issue
Block a user