feat: 修改弹窗展示条件

pull/27/head
刘释隆 1 year ago
parent 7f377fd9df
commit 74f0fa26b3

@ -13,7 +13,7 @@ const toolsData = ref({} as any);
async function getData(){ async function getData(){
const res=await getToolsCount(); const res=await getToolsCount();
toolsData.value=res.data || {}; toolsData.value=res.data || {};
if(!JSON.parse(res.message)){ if(res.code == 'OK'){
showModal(); showModal();
} }
} }

@ -78,7 +78,7 @@ async function viewRepeat(e: MouseEvent) {
async function getShowStatus() { async function getShowStatus() {
const res = await getToolsCount(); const res = await getToolsCount();
if (!JSON.parse(res.message)) { if (res.code == 'OK') {
show.value = true; show.value = true;
} }
} }

Loading…
Cancel
Save