瀏覽代碼

更新

wcs
朱文强 11 月之前
父節點
當前提交
e686b776c8
共有 3 個檔案被更改,包括 3 行新增3 行删除
  1. +1
    -1
      src/layout/components/Navbar.vue
  2. +1
    -1
      src/utils/request.js
  3. +1
    -1
      src/views/login.vue

+ 1
- 1
src/layout/components/Navbar.vue 查看文件

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


+ 1
- 1
src/utils/request.js 查看文件

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


+ 1
- 1
src/views/login.vue 查看文件

@@ -248,7 +248,7 @@ export default {
// 发起登陆
// console.log("发起登录", this.loginForm);
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(() => {
this.loading = false;


Loading…
取消
儲存