Skip to content

Commit

Permalink
fix: 外链应用切换请求了普通应用接口bug修复 (#366)
Browse files Browse the repository at this point in the history
Co-authored-by: leafage-collb <[email protected]>
  • Loading branch information
leafage-collb and leafage-collb authored Apr 20, 2023
1 parent 2cd89be commit 0aaaf40
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,14 @@
}
},
watch: {
'$route' () {
this.init();
this.initTopText();
'$route': {
deep: true,
handler () {
this.$nextTick(() => {
this.init();
});
this.initTopText();
}
},
dateRange: {
deep: true,
Expand Down Expand Up @@ -552,7 +557,6 @@
moment.locale(this.localLanguage);
},
mounted () {
this.init();
this.initDate();
this.initTopText();
},
Expand Down
10 changes: 9 additions & 1 deletion webfe/package_vue/src/views/dev-center/app/summary/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<template lang="html">
<!-- 普通应用 -->
<default-overview v-if="isEngineless" />
<default-overview
v-if="isEngineless"
ref="defaultApp"
/>
<!-- 外链应用 -->
<engineless-overview v-else />
</template>
Expand All @@ -20,6 +23,11 @@
isEngineless () {
return this.curAppInfo.web_config.engine_enabled;
}
},
mounted () {
if (this.isEngineless) {
this.$refs.defaultApp.init();
}
}
};
</script>

0 comments on commit 0aaaf40

Please sign in to comment.