修复常见问题删除问题

This commit is contained in:
zyx0814
2024-03-14 18:24:13 +08:00
Unverified
parent 2b135720a8
commit 0d49535105
4 changed files with 16 additions and 13 deletions

View File

@@ -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, {

View File

@@ -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);
}

View File

@@ -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
View File