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_set_header Content-Length $request_length;
proxy_pass http://service/api/approve/verifyToken; 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; include /etc/nginx/conf.d/conf.d/*.conf;

View File

@ -9,7 +9,6 @@
:url='microAppUrl' :url='microAppUrl'
inline inline
destroy destroy
disableSandbox
:data='microAppData' :data='microAppData'
@created='handleCreate' @created='handleCreate'
@beforemount='handleBeforeMount' @beforemount='handleBeforeMount'
@ -49,7 +48,11 @@ export default {
this.loading = true; this.loading = true;
this.$nextTick(()=>{ this.$nextTick(()=>{
this.loading = false; 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") window.eventCenterForAppNameVite = new EventCenterForMicroApp("micro-app")
}) })
} }