朱文强 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() { 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(() => {});
} }


+ 1
- 1
src/utils/request.js ファイルの表示

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


+ 1
- 1
src/views/login.vue ファイルの表示

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


読み込み中…
キャンセル
保存