From 8f97a28bff8a7e23534101d4e8a410c8651d6753 Mon Sep 17 00:00:00 2001 From: jiangx Date: Tue, 1 Mar 2022 14:24:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B7=BB=E5=8A=A0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 1 + src/composables/useDay.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 749db2a..4b8eec3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -41,6 +41,7 @@ function handleTotalClickLogo() { }) } +//向容器发送消息 退出软件 function bingo() { send('startexplorer') } diff --git a/src/composables/useDay.ts b/src/composables/useDay.ts index 0b95695..3381cdd 100644 --- a/src/composables/useDay.ts +++ b/src/composables/useDay.ts @@ -16,7 +16,7 @@ export const useDay = () => { const date = ref(new Date()) const store = useStore() - const language = computed(() => store.$state.language) + const language = computed(() => store.language) const currentWeek = () => days[language.value][date.value.getDay()]