fix: 🐛 存在滚动条时退出系统弹框页面抖动问题修复

This commit is contained in:
skyselang
2024-01-16 11:59:04 +08:00
parent 6230caae8c
commit 60fa756189

View File

@@ -70,16 +70,19 @@ function logout() {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}).then(() => { lockScroll: false,
userStore })
.logout() .then(() => {
.then(() => { userStore
tagsViewStore.delAllViews(); .logout()
}) .then(() => {
.then(() => { tagsViewStore.delAllViews();
router.push(`/login?redirect=${route.fullPath}`); })
}); .then(() => {
}); router.push(`/login?redirect=${route.fullPath}`);
});
})
.catch(() => {});
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>