fix: 🐛 存在滚动条时退出系统弹框页面抖动问题修复
This commit is contained in:
@@ -70,7 +70,9 @@ function logout() {
|
|||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
}).then(() => {
|
lockScroll: false,
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
userStore
|
userStore
|
||||||
.logout()
|
.logout()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@@ -79,7 +81,8 @@ function logout() {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
router.push(`/login?redirect=${route.fullPath}`);
|
router.push(`/login?redirect=${route.fullPath}`);
|
||||||
});
|
});
|
||||||
});
|
})
|
||||||
|
.catch(() => {});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user