mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
msg
This commit is contained in:
parent
9f3b25e91d
commit
1388c1b465
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user