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