mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 04:32:49 +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_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;
|
||||||
|
|||||||
@ -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")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user