mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-27 13:08:13 +00:00
feat:添加配置
This commit is contained in:
parent
fead758660
commit
f6fd9a5edf
@ -781,10 +781,11 @@ export default {
|
||||
return;
|
||||
case 'okrManage':
|
||||
case 'okrAnalyze':
|
||||
let query = { url: import.meta.env.VITE_OKR_WEB_URL || "/manage/microapp/okr/" }
|
||||
if(path=='okrManage'){
|
||||
this.goForward({path: '/manage/microapp/' });
|
||||
this.goForward({ path: '/manage/microapp/', query });
|
||||
}else{
|
||||
this.goForward({path: '/manage/microapp/#/main' });
|
||||
this.goForward({ path: '/manage/microapp/#/main', query });
|
||||
}
|
||||
return;
|
||||
case 'logout':
|
||||
|
||||
@ -7,7 +7,6 @@
|
||||
</transition>
|
||||
<micro-app name='micro-app' v-if="microAppUrl && !loading"
|
||||
:url='microAppUrl'
|
||||
baseRoute="/main"
|
||||
inline
|
||||
destroy
|
||||
disableSandbox
|
||||
@ -34,7 +33,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
microAppUrl: 'http://localhost:5567/manage/microapp/#/main',
|
||||
microAppUrl: '',
|
||||
microAppData: {}
|
||||
}
|
||||
},
|
||||
@ -50,6 +49,7 @@ export default {
|
||||
this.loading = true;
|
||||
this.$nextTick(()=>{
|
||||
this.loading = false;
|
||||
this.microAppUrl = this.$route.query.url
|
||||
window.eventCenterForAppNameVite = new EventCenterForMicroApp("micro-app")
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user