This commit is contained in:
朱文强 2023-10-25 16:44:56 +08:00
parent b8b9d9a4b2
commit e686b776c8
3 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ export default {
async logout() { async logout() {
this.$modal.confirm('确定注销并退出系统吗?', '提示').then(() => { this.$modal.confirm('确定注销并退出系统吗?', '提示').then(() => {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {
location.href = getPath('/index'); this.$router.push({ path: 'login' })
}) })
}).catch(() => {}); }).catch(() => {});
} }

View File

@ -226,7 +226,7 @@ function handleAuthorized() {
).then(() => { ).then(() => {
isRelogin.show = false; isRelogin.show = false;
store.dispatch('LogOut').then(() => { store.dispatch('LogOut').then(() => {
location.href = getPath('/index'); this.$router.push({ path: 'login' })
}) })
}).catch(() => { }).catch(() => {
isRelogin.show = false; isRelogin.show = false;

View File

@ -248,7 +248,7 @@ export default {
// //
// console.log("", this.loginForm); // console.log("", this.loginForm);
this.$store.dispatch(this.loginForm.loginType === "sms" ? "SmsLogin" : "Login", this.loginForm).then(() => { this.$store.dispatch(this.loginForm.loginType === "sms" ? "SmsLogin" : "Login", this.loginForm).then(() => {
this.$router.push({ path: this.redirect || "/" }).catch(() => { this.$router.push({ path: "/" }).catch(() => {
}); });
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;