This commit is contained in:
gotoeasy 2023-10-17 10:08:13 +08:00
parent 9f3b25e91d
commit 1388c1b465
3 changed files with 20 additions and 19 deletions

View File

@ -23,7 +23,7 @@
<PageMain />
</div>
<div class="footer">
<PageFooter v-if="!themeState.tabsMaximize && !themeState.pageMaximize && themeStore.showFooter" />
<PageFooter v-show="!themeState.tabsMaximize && !themeState.pageMaximize && themeStore.showFooter" />
</div>
</div>
</el-main>

View File

@ -1,5 +1,5 @@
<template>
<div class="copyright">Copyright © 2023 gotoeasy.top</div>
<div class="copyright">Copyright © 2022-Present gotoeasy.top</div>
</template>
<script setup>

View File

@ -86,24 +86,25 @@ function search() {
});
}
function remove(row) {
async function remove(row) {
//
const url = `/v1/store/delete`;
$post(url, { storeName: row.name }, null, { 'Content-Type': 'application/x-www-form-urlencoded' }).then(rs => {
console.log(rs)
if (rs.success) {
$msg.info(`已删除日志仓 ${row.name}`);
search();
} else if (rs.code == 403) {
userLogout(); // 403
router.push('/login');
} else {
$msg.error(rs.message);
}
}).finally(() => {
showTableLoadding.value = false;
});
if (await $msg.confirm(`确定要删除日志仓 ${row.name} 吗?`)) {
const url = `/v1/store/delete`;
$post(url, { storeName: row.name }, null, { 'Content-Type': 'application/x-www-form-urlencoded' }).then(rs => {
console.log(rs)
if (rs.success) {
$msg.info(`已删除日志仓 ${row.name}`);
search();
} else if (rs.code == 403) {
userLogout(); // 403
router.push('/login');
} else {
$msg.error(rs.message);
}
}).finally(() => {
showTableLoadding.value = false;
});
}
}
</script>