feat:添加配置

This commit is contained in:
weifashi 2023-07-12 15:29:17 +08:00
parent fead758660
commit f6fd9a5edf
2 changed files with 5 additions and 4 deletions

View File

@ -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':

View File

@ -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")
})
}