diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index a151e00a8..e954e7eb3 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -3,6 +3,7 @@ } body { height: 100%; + min-width: 1024px; } html { height: 100%; diff --git a/nezha-fronted/src/components/page/asset/asset.vue b/nezha-fronted/src/components/page/asset/asset.vue index 399715131..432523415 100644 --- a/nezha-fronted/src/components/page/asset/asset.vue +++ b/nezha-fronted/src/components/page/asset/asset.vue @@ -993,7 +993,8 @@ let _this = this; window.onresize = function () { _this.$refs.leftScrollbar.update(); - } + el._ps_.update(); + }; }); let localStorageTitle = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path); this.tablelable = localStorageTitle ? JSON.parse(localStorageTitle) : this.tableTitle; diff --git a/nezha-fronted/src/components/page/config/dc.vue b/nezha-fronted/src/components/page/config/dc.vue index 7afa15df7..99f46a15f 100644 --- a/nezha-fronted/src/components/page/config/dc.vue +++ b/nezha-fronted/src/components/page/config/dc.vue @@ -443,8 +443,12 @@ this.showTopBtn = false; } }); + window.onresize = function() { + el._ps_.update(); + }; } }); + this.tablelable = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path) ? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)) : this.tableTitle;