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