|
|
@@ -341,14 +341,15 @@ export default {
|
|
|
|
|
|
// 退出登录
|
|
|
Logout() {
|
|
|
- // 通知App壳端退出登录(仅APP环境生效)
|
|
|
- this.notifyPadAppLogout('logout');
|
|
|
this.$store.dispatch("user/logout");
|
|
|
localStorage.clear();
|
|
|
if(!this.padApp){
|
|
|
let url=process.env.VUE_APP_BASE+'/marking/#/login';//退出到考阅登录页
|
|
|
window.location.replace(url)
|
|
|
window.parent.location.href = `${process.env.VUE_APP_BASE}/marking/#/login`;//兼容父级iframe
|
|
|
+ }else{
|
|
|
+ // 通知App壳端退出登录(仅APP环境生效)
|
|
|
+ this.notifyPadAppLogout('logout');
|
|
|
}
|
|
|
},
|
|
|
//通知App(pad)端退出登录:
|