From 1a7bf83cb9c5f693ab191f1160e4e235450f4988 Mon Sep 17 00:00:00 2001 From: Sense T Date: Tue, 9 Apr 2024 00:18:18 +0800 Subject: [PATCH] 1 --- web/src/App.vue | 11 +- .../components/domains/DomainEditModal.vue | 225 ++++++++++-------- .../components/domains/DomainRemoveModal.vue | 7 +- web/src/views/DomainsView.vue | 18 +- web/src/views/RecordsView.vue | 14 +- 5 files changed, 154 insertions(+), 121 deletions(-) diff --git a/web/src/App.vue b/web/src/App.vue index 5cc4ce0..e19767f 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -13,14 +13,9 @@ import { RouterView } from "vue-router"; import { onMounted } from "vue"; const osThemeRef = useOsTheme() -const theme = defineModel('theme') -theme.value = osThemeRef.value === 'dark' ? darkTheme : lightTheme - -const locale = defineModel('locale') -locale.value = navigator.language === "zh-CN" ? zhCN : enUS - -const dateLocale = defineModel('dateLocale') -dateLocale.value = navigator.language === "zh-CN" ? dateZhCN : dateEnUS +const theme = osThemeRef.value === 'dark' ? darkTheme : lightTheme +const locale = navigator.language === "zh-CN" ? zhCN : enUS +const dateLocale = navigator.language === "zh-CN" ? dateZhCN : dateEnUS onMounted(() => { document.title = 'reCoreD-UI' diff --git a/web/src/components/domains/DomainEditModal.vue b/web/src/components/domains/DomainEditModal.vue index eb13a4d..bbf728b 100644 --- a/web/src/components/domains/DomainEditModal.vue +++ b/web/src/components/domains/DomainEditModal.vue @@ -1,89 +1,103 @@ \ No newline at end of file diff --git a/web/src/components/domains/DomainRemoveModal.vue b/web/src/components/domains/DomainRemoveModal.vue index 7420fd3..03d329e 100644 --- a/web/src/components/domains/DomainRemoveModal.vue +++ b/web/src/components/domains/DomainRemoveModal.vue @@ -1,6 +1,6 @@