From 5c58e8eebf2944c3e8dfa4feee685d8ca089e944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= Date: Thu, 16 Apr 2020 21:34:44 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20ASSET-list=20=E7=AA=97=E5=8F=A3resize?= =?UTF-8?q?=E6=97=B6=E6=BB=9A=E5=8A=A8=E6=9D=A1=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/assets/stylus/main.scss | 1 + nezha-fronted/src/components/page/asset/asset.vue | 3 ++- nezha-fronted/src/components/page/config/dc.vue | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) 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;