From 57df3c90bff21cf1b5b319bacd3d8f149544e01c Mon Sep 17 00:00:00 2001 From: expdsn <18111002318@163.com> Date: Mon, 18 Nov 2024 18:47:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8B=A5=E5=B9=B2=E9=97=AE?= =?UTF-8?q?=E9=A2=981-32?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/layout/GlobalMenu.tsx | 2 +- src/layout/adder/useAdderPageStore.tsx | 7 +- src/layout/background/BackgroundPage.tsx | 17 +--- src/layout/background/index.tsx | 2 +- src/layout/background/useResource.ts | 7 ++ src/layout/grid/Feedback.tsx | 12 ++- src/layout/grid/LinkBlock.tsx | 4 +- src/layout/grid/Reset.tsx | 90 +++++++++++++++------- src/layout/grid/WelcomePage.tsx | 6 +- src/layout/header/search/useSearchStore.ts | 18 ++--- src/layout/sider/ModeSwitch.tsx | 2 +- src/main.css | 6 +- src/utils/useStatisticStore.ts | 1 - src/widgets/notepad/useNotepadStore.tsx | 65 +++++++++------- src/widgets/work/Large.tsx | 2 +- src/widgets/work/useTomatoStore.ts | 26 ++++--- 17 files changed, 154 insertions(+), 114 deletions(-) diff --git a/package.json b/package.json index 75121f7..6db1260 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "dayjs": "^1.11.13", "echarts": "^5.5.1", "gsap": "^3.12.5", + "js-base64": "^3.7.7", "localforage": "^1.10.0", "lodash": "^4.17.21", "lunar-typescript": "^1.7.5", diff --git a/src/layout/GlobalMenu.tsx b/src/layout/GlobalMenu.tsx index 9dfa9de..89a954f 100644 --- a/src/layout/GlobalMenu.tsx +++ b/src/layout/GlobalMenu.tsx @@ -352,7 +352,7 @@ export default defineComponent(() => { text: block.text, background: block.background, color: block.color, - type: block.color ? 1 : 0 + type: !block.icon ? 1 : 0 } router.go('global-adder') useAdderPageStore().type = 2 diff --git a/src/layout/adder/useAdderPageStore.tsx b/src/layout/adder/useAdderPageStore.tsx index 78a90b6..3ecc817 100644 --- a/src/layout/adder/useAdderPageStore.tsx +++ b/src/layout/adder/useAdderPageStore.tsx @@ -36,7 +36,7 @@ export default defineStore('adderPage', () => { const isSearch = ref(false) const widgetSearchWords = ref('') const gameSearch = ref('') - const editBlockItem = ref(null) + const editBlockItem = ref(null) request('GET', '/api/app/hotAppTypes').then((res) => { categoryList.value = res.map((el) => ({ id: el.id, @@ -64,9 +64,10 @@ export default defineStore('adderPage', () => { } const search = (keywords: string) => { - if (keywords === '') { + if (!keywords) { + if (isSearch.value) getApps(selectType.value) + isSearch.value = false - getApps(selectType.value) return } isSearch.value = true diff --git a/src/layout/background/BackgroundPage.tsx b/src/layout/background/BackgroundPage.tsx index 2a47b51..7c45d43 100644 --- a/src/layout/background/BackgroundPage.tsx +++ b/src/layout/background/BackgroundPage.tsx @@ -23,22 +23,7 @@ export default defineComponent(() => { const settings = useSettingsStore() return () => (
- {/*
所属模式
- }} - > -