diff --git a/frontend/src/business/App.vue b/frontend/src/business/App.vue
index a62988c181..6d0d0fbbd4 100644
--- a/frontend/src/business/App.vue
+++ b/frontend/src/business/App.vue
@@ -19,7 +19,7 @@
-
+
@@ -52,6 +52,7 @@ export default {
logoId: '_blank',
color: '',
sessionTimer: null,
+ isShow: true,
};
},
created() {
@@ -102,6 +103,12 @@ export default {
window.location.href = "/login";
});
},
+ // 提供可注入子组件属性
+ provide() {
+ return {
+ reload: this.reload
+ }
+ },
methods: {
initSessionTimer() {
this.$get('/system/timeout')
@@ -137,6 +144,15 @@ export default {
this.$refs.headerUser.logout();
}, 1000 * timeout);
},
+ reload() {
+ // 先隐藏
+ this.isShow = false
+
+ // $nextTick() 将回调延迟到下次 DOM 更新循环之后执行
+ this.$nextTick(() => {
+ this.isShow = true
+ })
+ }
},
components: {
MsLanguageSwitch,
diff --git a/frontend/src/business/components/common/head/SearchList.vue b/frontend/src/business/components/common/head/SearchList.vue
index 6ea21ae847..edd2c26ec1 100644
--- a/frontend/src/business/components/common/head/SearchList.vue
+++ b/frontend/src/business/components/common/head/SearchList.vue
@@ -26,8 +26,7 @@