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

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

View File

@@ -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>