From 1e7b1da349308d35a221f36f91de9a2fe4c83cf8 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 23 Mar 2022 15:06:36 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1708=20fix=EF=BC=9AChart=20templates?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=88=A0=E9=99=A4=E5=9B=BE=E8=A1=A8=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E6=8C=89=E9=92=AE=E5=90=8E=E5=BC=B9=E7=AA=97=E5=90=8E?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=8F=96=E6=B6=88=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E6=8A=A5=E9=94=99=EF=BC=8C=E5=86=8D=E6=AC=A1=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/bottomBox/tabs/panelTabNew.vue | 2 ++ .../src/components/layout/header.vue | 20 +++++++++---------- .../src/components/page/dashboard/panel.vue | 3 +++ 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue index cc6665861..98cec42fa 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue @@ -424,6 +424,8 @@ export default { this.$store.dispatch('clearPanel') } }) + }).catch(() => { + this.$store.dispatch('clearPanel') }) }, addGroupItem (groupId) { diff --git a/nezha-fronted/src/components/layout/header.vue b/nezha-fronted/src/components/layout/header.vue index 4f1272380..d5b3d99a6 100644 --- a/nezha-fronted/src/components/layout/header.vue +++ b/nezha-fronted/src/components/layout/header.vue @@ -66,9 +66,9 @@ - - {{item}} - + + + @@ -120,7 +120,7 @@ export default { } ], showGuide: false, - fontData: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ' ', '@', '$', '-'] + // fontData: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ' ', '@', '$', '-'] } }, methods: { @@ -201,12 +201,12 @@ export default { } }, mounted () { - for (let i = 65; i < 91; i++) { - this.fontData.push(String.fromCharCode(i)) - } - for (let i = 97; i < 123; i++) { - this.fontData.push(String.fromCharCode(i)) - } + // for (let i = 65; i < 91; i++) { + // this.fontData.push(String.fromCharCode(i)) + // } + // for (let i = 97; i < 123; i++) { + // this.fontData.push(String.fromCharCode(i)) + // } this.$i18n.locale = this.language if (localStorage.getItem('nz-token')) { this.initEvent() diff --git a/nezha-fronted/src/components/page/dashboard/panel.vue b/nezha-fronted/src/components/page/dashboard/panel.vue index 3bb9f67c1..0020148de 100644 --- a/nezha-fronted/src/components/page/dashboard/panel.vue +++ b/nezha-fronted/src/components/page/dashboard/panel.vue @@ -343,8 +343,11 @@ export default { this.getTableData(true) } else { this.$message.error(response.msg) + this.$store.dispatch('clearPanel') } }) + }).catch(() => { + this.$store.dispatch('clearPanel') }) }, edit (u) {