mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 11:13:26 +00:00
feat:退出登录时,清空微应用缓存以便重新加载
This commit is contained in:
parent
7a1c2c7f2d
commit
3fe9c60480
@ -26,7 +26,7 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import store from '../store/index'
|
import store from '../store/index'
|
||||||
import { mapState } from "vuex";
|
import { mapState } from "vuex";
|
||||||
import { EventCenterForMicroApp } from '@micro-zoe/micro-app'
|
import { EventCenterForMicroApp, unmountAllApps } from '@micro-zoe/micro-app'
|
||||||
import DialogWrapper from '../pages/manage/components/DialogWrapper.vue'
|
import DialogWrapper from '../pages/manage/components/DialogWrapper.vue'
|
||||||
import UserSelect from "./UserSelect.vue";
|
import UserSelect from "./UserSelect.vue";
|
||||||
import { languageList, languageType } from "../language";
|
import { languageList, languageType } from "../language";
|
||||||
@ -93,7 +93,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
immediate: true,
|
immediate: true,
|
||||||
}
|
},
|
||||||
|
userToken(val) {
|
||||||
|
this.appData = this.getAppData;
|
||||||
|
if(!val){
|
||||||
|
unmountAllApps({ destroy: true })
|
||||||
|
this.loading = true;
|
||||||
|
}else{
|
||||||
|
this.loading = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState([
|
...mapState([
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user