From 54e3ab562b3cf2d2185776937ef4c203879b91cd Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Thu, 16 Nov 2023 21:07:42 +0800 Subject: [PATCH] mod: pool style --- src/components/KUNGalgameSearchBox.vue | 33 ++-------- .../article/components/ArticleContent.vue | 20 ------ src/views/pool/Pool.vue | 16 ++--- src/views/pool/components/Bar.vue | 42 ++++-------- src/views/pool/components/Tags.vue | 25 ++++--- src/views/pool/components/Topic.vue | 66 ++++++++----------- 6 files changed, 62 insertions(+), 140 deletions(-) diff --git a/src/components/KUNGalgameSearchBox.vue b/src/components/KUNGalgameSearchBox.vue index 6ce2a43c..1af0ff39 100644 --- a/src/components/KUNGalgameSearchBox.vue +++ b/src/components/KUNGalgameSearchBox.vue @@ -94,13 +94,9 @@ const handleDeleteHistory = (historyIndex: number) => { diff --git a/src/views/pool/components/Tags.vue b/src/views/pool/components/Tags.vue index f24d81a2..5cbc78df 100644 --- a/src/views/pool/components/Tags.vue +++ b/src/views/pool/components/Tags.vue @@ -3,9 +3,7 @@ import { tags } from '@/types/pool/tags' diff --git a/src/views/pool/components/Topic.vue b/src/views/pool/components/Topic.vue index 72b2c133..021456af 100644 --- a/src/views/pool/components/Topic.vue +++ b/src/views/pool/components/Topic.vue @@ -4,9 +4,8 @@ import { ref } from 'vue' import { useKUNGalgameSettingsStore } from '@/store/modules/settings' import { storeToRefs } from 'pinia' -// 使用设置面板的 store -const settingsStore = useKUNGalgameSettingsStore() -const { showKUNGalgameMode } = storeToRefs(settingsStore) + +const { showKUNGalgameMode } = storeToRefs(useKUNGalgameSettingsStore()) const light = `rgba(${randomNum(200, 255)}, ${randomNum(200, 255)}, ${randomNum( 200, @@ -43,28 +42,25 @@ import { onMounted, watch } from 'vue'