perf: 优化微应用参数变量的支持

This commit is contained in:
kuaifan 2025-06-03 21:38:22 +08:00
parent 09f5cca948
commit e5d9140aa0
2 changed files with 7 additions and 2 deletions

View File

@ -96,7 +96,7 @@ services:
appstore:
container_name: "dootask-appstore-${APP_ID}"
privileged: true
image: "dootask/appstore:0.0.9"
image: "dootask/appstore:0.1.0"
volumes:
- shared_data:/usr/share/dootask
- /var/run/docker.sock:/var/run/docker.sock

View File

@ -4697,7 +4697,12 @@ export default {
.replace(/\{user_token}/g, encodeURIComponent(state.userToken))
.replace(/\{system_theme}/g, state.systemConfig.themeName)
.replace(/\{system_lang}/g, languageName)
.replace(/\{system_base_url}/g, $A.mainUrl('').replace(/\/$/, ''));
.replace(/\{system_base_url}/g, $A.mainUrl('').replace(/\/$/, ''))
.replace(/\{window_location_(\w+)}/g, (match, property) => {
if (property in window.location) {
return window.location[property];
}
});
emitter.emit('observeMicroApp:open', config);
},