From 5dd1eac037eb960a372c7fef81fd7266ff346d85 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 21 Jul 2023 17:18:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E5=88=A0=E9=99=A4localStorage?= =?UTF-8?q?=E9=87=8C=E9=9D=A2=E7=9A=84=20dashboardTime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/build/webpack.prod.conf.js | 2 +- nezha-fronted/src/components/page/dashboard/dashboard.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/build/webpack.prod.conf.js b/nezha-fronted/build/webpack.prod.conf.js index cb66063f9..7f79c9983 100644 --- a/nezha-fronted/build/webpack.prod.conf.js +++ b/nezha-fronted/build/webpack.prod.conf.js @@ -31,7 +31,7 @@ const { VueLoaderPlugin } = require('vue-loader') const createJson = function () { // serverConfig.version=config.build.version +"-"+gitRevisionPlugin.commithash(); serverConfig.baseUrl = '/' - serverConfig.version = config.build.version + serverConfig.version = serverConfig.version || config.build.version return JSON.stringify(serverConfig) } diff --git a/nezha-fronted/src/components/page/dashboard/dashboard.vue b/nezha-fronted/src/components/page/dashboard/dashboard.vue index 277ada2b6..b30750cd2 100644 --- a/nezha-fronted/src/components/page/dashboard/dashboard.vue +++ b/nezha-fronted/src/components/page/dashboard/dashboard.vue @@ -1274,7 +1274,7 @@ export default { immediate: true, deep: true, handler (n) { - localStorage.setItem('dashboardTime', JSON.stringify(n)) + // localStorage.setItem('dashboardTime', JSON.stringify(n)) } }, chartRightBoxShow: {