From 0e335749d956dd0e0d10d87ebd5fee0963667ad4 Mon Sep 17 00:00:00 2001 From: besscroft Date: Wed, 13 Sep 2023 11:32:56 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix(api):=E7=A7=BB=E9=99=A4=20api=20?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- heming-web/plugins/api.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/heming-web/plugins/api.ts b/heming-web/plugins/api.ts index 938d61b..4be77d9 100644 --- a/heming-web/plugins/api.ts +++ b/heming-web/plugins/api.ts @@ -5,7 +5,6 @@ export default defineNuxtPlugin((nuxtApp) => { const app = nuxtApp.vueApp const userStore = useUserStore(app.$pinia) const router = useRouter() - const toast = useToast() const apiFetch = ky.extend({ timeout: 600000, @@ -20,7 +19,6 @@ export default defineNuxtPlugin((nuxtApp) => { const {response} = error console.log(response.status); if (response.status === 401) { - toast.add({ title: '登录已失效!', timeout: 2000, ui: { width: 'w-full sm:w-96' }}) router.push('/login') } return error From 82cdf06b279eecf36d4cbfad430a4be4feb67be5 Mon Sep 17 00:00:00 2001 From: besscroft Date: Wed, 13 Sep 2023 11:50:10 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix(learn):=E4=BF=AE=E5=A4=8D=20dom=20?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- heming-web/pages/learn.vue | 4 ++++ heming-web/pages/practise.vue | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/heming-web/pages/learn.vue b/heming-web/pages/learn.vue index e4842d0..83d5813 100644 --- a/heming-web/pages/learn.vue +++ b/heming-web/pages/learn.vue @@ -24,9 +24,13 @@ const getWord = async () => { wordInfo.value = json.data if (json.data?.content?.word?.content?.phrase?.phrases) { phrases.value = json.data.content.word.content.phrase.phrases + } else { + phrases.value = [] } if (json.data?.content?.word?.content?.exam) { exam.value = json.data.content.word.content.exam + } else { + exam.value = [] } } else { console.log(json.message) diff --git a/heming-web/pages/practise.vue b/heming-web/pages/practise.vue index fcc1919..9916ed4 100644 --- a/heming-web/pages/practise.vue +++ b/heming-web/pages/practise.vue @@ -22,12 +22,15 @@ const getWorkWord = async () => { const json = await nuxtApp.$api.get('/@api/book/getWorkWord').json(); if (json.code === 200) { wordInfo.value = json.data - console.log(json.data) if (json.data?.content?.word?.content?.phrase?.phrases) { phrases.value = json.data.content.word.content.phrase.phrases + } else { + phrases.value = [] } if (json.data?.content?.word?.content?.exam) { exam.value = json.data.content.word.content.exam + } else { + exam.value = [] } } else { console.log(json.message) From f884023cae36d964d7769236621fbe22b5dd62b2 Mon Sep 17 00:00:00 2001 From: besscroft Date: Wed, 13 Sep 2023 17:34:38 +0800 Subject: [PATCH 3/4] =?UTF-8?q?style(button):=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- heming-web/layouts/admin.vue | 4 +++- heming-web/pages/index.vue | 27 ++++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/heming-web/layouts/admin.vue b/heming-web/layouts/admin.vue index 85a0e56..9b3d426 100644 --- a/heming-web/layouts/admin.vue +++ b/heming-web/layouts/admin.vue @@ -12,7 +12,9 @@ const drawer = ref(null) - 嗯学英语 + + 嗯学英语 + diff --git a/heming-web/pages/index.vue b/heming-web/pages/index.vue index 8b09dc4..219def4 100644 --- a/heming-web/pages/index.vue +++ b/heming-web/pages/index.vue @@ -14,7 +14,32 @@ definePageMeta({
开始
- + + +
+ + From 76061cac9aa016625a83c97ba96ae11b2010fec8 Mon Sep 17 00:00:00 2001 From: besscroft Date: Wed, 13 Sep 2023 19:35:18 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix(buffer):=E4=BF=AE=E5=A4=8D=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E4=B8=80=E8=87=B4=E6=80=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../heming/enstudy/service/impl/UserBookDictServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/heming-system/src/main/java/dev/heming/enstudy/service/impl/UserBookDictServiceImpl.java b/heming-system/src/main/java/dev/heming/enstudy/service/impl/UserBookDictServiceImpl.java index 5797bc4..6b9d4f8 100644 --- a/heming-system/src/main/java/dev/heming/enstudy/service/impl/UserBookDictServiceImpl.java +++ b/heming-system/src/main/java/dev/heming/enstudy/service/impl/UserBookDictServiceImpl.java @@ -94,6 +94,8 @@ public void choice(DictChoiceParam param) { this.updateById(dict); } } + redisTemplate.delete(CacheConstants.USER_BOOK_DICT + userId); + redisTemplate.delete(CacheConstants.USER_WRONG_WORK + userId); } @Override