|
@@ -15,6 +15,15 @@
|
|
<i class="icon icon-user"></i>{{ user.displayName }}
|
|
<i class="icon icon-user"></i>{{ user.displayName }}
|
|
</li>
|
|
</li>
|
|
<li
|
|
<li
|
|
|
|
+ v-if="returnUrl"
|
|
|
|
+ class="header-menu-item header-menu-back"
|
|
|
|
+ title="返回"
|
|
|
|
+ @click="logout"
|
|
|
|
+ >
|
|
|
|
+ 返回<i class="el-icon-arrow-right"></i>
|
|
|
|
+ </li>
|
|
|
|
+ <li
|
|
|
|
+ v-else
|
|
class="header-menu-item header-menu-logout"
|
|
class="header-menu-item header-menu-logout"
|
|
title="退出系统"
|
|
title="退出系统"
|
|
@click="logout"
|
|
@click="logout"
|
|
@@ -269,6 +278,8 @@ export default {
|
|
...pwdRule,
|
|
...pwdRule,
|
|
],
|
|
],
|
|
},
|
|
},
|
|
|
|
+ // 第三方跳转到系统的返回地址
|
|
|
|
+ returnUrl: "",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -290,6 +301,8 @@ export default {
|
|
if (this.user.passwordWeak) {
|
|
if (this.user.passwordWeak) {
|
|
this.passWeakDialog = true;
|
|
this.passWeakDialog = true;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ this.returnUrl = window.sessionStorage.getItem("returnUrl");
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapActions([USER_SIGNOUT, USER_SIGNIN]),
|
|
...mapActions([USER_SIGNOUT, USER_SIGNIN]),
|
|
@@ -371,9 +384,8 @@ export default {
|
|
this.USER_SIGNOUT();
|
|
this.USER_SIGNOUT();
|
|
window.name = "";
|
|
window.name = "";
|
|
|
|
|
|
- const returnUrl = window.sessionStorage.getItem("returnUrl");
|
|
|
|
- if (returnUrl) {
|
|
|
|
- window.location.href = returnUrl;
|
|
|
|
|
|
+ if (this.returnUrl) {
|
|
|
|
+ window.location.href = this.returnUrl;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -392,9 +404,8 @@ export default {
|
|
this.USER_SIGNOUT();
|
|
this.USER_SIGNOUT();
|
|
window.name = "";
|
|
window.name = "";
|
|
|
|
|
|
- const returnUrl = window.sessionStorage.getItem("returnUrl");
|
|
|
|
- if (returnUrl) {
|
|
|
|
- window.location.href = returnUrl;
|
|
|
|
|
|
+ if (this.returnUrl) {
|
|
|
|
+ window.location.href = this.returnUrl;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|