From 3e92e0afc6aa1cd0fd86d19cc5c6bd894b492c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Tue, 12 Oct 2021 11:49:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BF=AE=E6=94=B9=E6=97=B6?= =?UTF-8?q?=E5=8C=BA=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/views/@default/clusters/cluster/settings/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/views/@default/clusters/cluster/settings/index.js b/web/views/@default/clusters/cluster/settings/index.js index f8491562..b25ac60d 100644 --- a/web/views/@default/clusters/cluster/settings/index.js +++ b/web/views/@default/clusters/cluster/settings/index.js @@ -6,8 +6,18 @@ Tea.context(function () { this.timeZoneGroupCode = this.timeZoneLocation.group } + let oldTimeZoneGroupCode = this.timeZoneGroupCode + let oldTimeZoneName = "" + if (this.timeZoneLocation != null) { + oldTimeZoneName = this.timeZoneLocation.name + } + this.$delay(function () { this.$watch("timeZoneGroupCode", function (groupCode) { + if (groupCode == oldTimeZoneGroupCode && oldTimeZoneName.length > 0) { + this.cluster.timeZone = oldTimeZoneName + return + } let firstLocation = null this.timeZoneLocations.forEach(function (v) { if (firstLocation != null) {