From d2c855c07407bdd33638cc4a3473182b7a367b74 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 24 Dec 2020 11:07:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E4=B8=AD=E8=8B=B1=E6=96=87=E5=88=87=E6=8D=A2=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E9=83=A8=E5=88=86=E8=A1=A8=E6=A0=BC=E8=A1=A8=E5=A4=B4?= =?UTF-8?q?=E6=B2=A1=E5=8F=98=E6=8D=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/alert/alertMessageTable.vue | 1 + .../src/components/common/bottomBox/tabs/endpointTab.vue | 2 +- nezha-fronted/src/components/page/config/menus.vue | 1 + nezha-fronted/src/components/page/config/roles.vue | 1 + nezha-fronted/src/components/page/project/project.vue | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/alert/alertMessageTable.vue b/nezha-fronted/src/components/common/alert/alertMessageTable.vue index 9fe9a3da8..43846b076 100644 --- a/nezha-fronted/src/components/common/alert/alertMessageTable.vue +++ b/nezha-fronted/src/components/common/alert/alertMessageTable.vue @@ -848,6 +848,7 @@ this.tools.customTableTitle = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + '/alertList') ? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + '/alertList')) : this.tableTitle; + this.tableTitleReset(this.tableTitle,this.tools.customTableTitle); //是否存在分页缓存 let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId); if (pageSize != 'undefined' && pageSize != null) { diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue index b6bb12a38..65a1f9663 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue @@ -512,7 +512,7 @@ this.tools.customTableTitle = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/projectBottom") ? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/projectBottom")) : this.tableTitle; - + this.tableTitleReset(this.tableTitle,this.tools.customTableTitle); this.initEvent(); }, beforeDestroy(){ diff --git a/nezha-fronted/src/components/page/config/menus.vue b/nezha-fronted/src/components/page/config/menus.vue index 647634c7d..c9bf668dc 100644 --- a/nezha-fronted/src/components/page/config/menus.vue +++ b/nezha-fronted/src/components/page/config/menus.vue @@ -317,6 +317,7 @@ this.tools.customTableTitle = 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; + this.tableTitleReset(this.tableTitle,this.tools.customTableTitle); this.getTableData(); }, beforeDestroy() { diff --git a/nezha-fronted/src/components/page/config/roles.vue b/nezha-fronted/src/components/page/config/roles.vue index 8b8c6b4f0..a3117690a 100644 --- a/nezha-fronted/src/components/page/config/roles.vue +++ b/nezha-fronted/src/components/page/config/roles.vue @@ -308,6 +308,7 @@ this.tools.customTableTitle = 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; + this.tableTitleReset(this.tableTitle,this.tools.customTableTitle); this.getTableData(); }, } diff --git a/nezha-fronted/src/components/page/project/project.vue b/nezha-fronted/src/components/page/project/project.vue index 1379c5889..b610ebbd1 100644 --- a/nezha-fronted/src/components/page/project/project.vue +++ b/nezha-fronted/src/components/page/project/project.vue @@ -782,6 +782,7 @@ this.tools.customTableTitle=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; + this.tableTitleReset(this.tableTitle,this.tools.customTableTitle); setTimeout(()=>{ this.ready=true; },300);