diff --git a/src/boot/i18n.ts b/src/boot/i18n.ts index ad13200..666d532 100644 --- a/src/boot/i18n.ts +++ b/src/boot/i18n.ts @@ -26,6 +26,8 @@ Cookies.set("language", language, { expires: 365, }); +(window).currnet_use_language = language; + const i18n = createI18n({ locale: language, messages, diff --git a/src/components/ClockSignalSourceDialog.vue b/src/components/ClockSignalSourceDialog.vue index e897561..5ae5ff5 100644 --- a/src/components/ClockSignalSourceDialog.vue +++ b/src/components/ClockSignalSourceDialog.vue @@ -462,10 +462,6 @@ export default defineComponent({ const now = Date.now(); const date_format_options = ref([ - { - label: DateHelper.formatDate(now, "YYYY年MM月DD日"), - value: "yyyy年MM月dd日", - }, { label: DateHelper.formatDate(now, "YYYY/MM/DD"), value: "yyyy/MM/dd", @@ -474,17 +470,21 @@ export default defineComponent({ label: DateHelper.formatDate(now, "YYYY-MM-DD"), value: "yyyy-MM-dd", }, + { + label: DateHelper.formatDate(now, "YYYY年MM月DD日"), + value: "yyyy年MM月dd日", + }, ]); const time_format_options = ref([ - { - label: DateHelper.formatDate(now, "HH时mm分ss秒"), - value: "hh时mm分ss秒", - }, { label: DateHelper.formatDate(now, "HH:mm:ss"), value: "hh:mm:ss", }, + { + label: DateHelper.formatDate(now, "HH时mm分ss秒"), + value: "hh时mm分ss秒", + }, ]); let show_dialog = ref(false);