feat:微应用逻辑补充

This commit is contained in:
weifashi 2023-07-12 18:44:28 +08:00
parent f6fd9a5edf
commit ddc7aecd53
2 changed files with 11 additions and 3 deletions

View File

@ -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;

View File

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