mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-18 23:10:25 +08:00
优化修改时区交互
This commit is contained in:
@@ -6,8 +6,18 @@ Tea.context(function () {
|
|||||||
this.timeZoneGroupCode = this.timeZoneLocation.group
|
this.timeZoneGroupCode = this.timeZoneLocation.group
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let oldTimeZoneGroupCode = this.timeZoneGroupCode
|
||||||
|
let oldTimeZoneName = ""
|
||||||
|
if (this.timeZoneLocation != null) {
|
||||||
|
oldTimeZoneName = this.timeZoneLocation.name
|
||||||
|
}
|
||||||
|
|
||||||
this.$delay(function () {
|
this.$delay(function () {
|
||||||
this.$watch("timeZoneGroupCode", function (groupCode) {
|
this.$watch("timeZoneGroupCode", function (groupCode) {
|
||||||
|
if (groupCode == oldTimeZoneGroupCode && oldTimeZoneName.length > 0) {
|
||||||
|
this.cluster.timeZone = oldTimeZoneName
|
||||||
|
return
|
||||||
|
}
|
||||||
let firstLocation = null
|
let firstLocation = null
|
||||||
this.timeZoneLocations.forEach(function (v) {
|
this.timeZoneLocations.forEach(function (v) {
|
||||||
if (firstLocation != null) {
|
if (firstLocation != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user