mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
feat:微应用逻辑补充
This commit is contained in:
parent
f6fd9a5edf
commit
ddc7aecd53
@ -183,6 +183,11 @@ server {
|
||||
proxy_set_header Content-Length $request_length;
|
||||
proxy_pass http://service/api/approve/verifyToken;
|
||||
}
|
||||
|
||||
# OKR
|
||||
location /manage/microapp/okr/ {
|
||||
proxy_pass http://192.168.100.83:5566/;
|
||||
}
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/conf.d/*.conf;
|
||||
|
||||
@ -7,9 +7,8 @@
|
||||
</transition>
|
||||
<micro-app name='micro-app' v-if="microAppUrl && !loading"
|
||||
:url='microAppUrl'
|
||||
inline
|
||||
inline
|
||||
destroy
|
||||
disableSandbox
|
||||
:data='microAppData'
|
||||
@created='handleCreate'
|
||||
@beforemount='handleBeforeMount'
|
||||
@ -49,7 +48,11 @@ export default {
|
||||
this.loading = true;
|
||||
this.$nextTick(()=>{
|
||||
this.loading = false;
|
||||
this.microAppUrl = this.$route.query.url
|
||||
let url = $A.apiUrl(this.$route.query.url)
|
||||
if( url.indexOf('http') == -1 ){
|
||||
url = window.location.origin + url
|
||||
}
|
||||
this.microAppUrl =url
|
||||
window.eventCenterForAppNameVite = new EventCenterForMicroApp("micro-app")
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user