From ead30f62a8a0a92e712080f4aa06a4576c2ed72c Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Mon, 2 Sep 2024 11:41:07 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96=20sws=20?= =?UTF-8?q?2024-09-02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index.ts | 1 - src/store/modules/article.ts | 24 ------------------------ 2 files changed, 25 deletions(-) delete mode 100644 src/store/modules/article.ts diff --git a/src/store/index.ts b/src/store/index.ts index 88b996b7..8fa5dd94 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -11,6 +11,5 @@ export * from './modules/footer-nav-content'; export * from './modules/upload'; export * from './modules/shop'; export * from './modules/custom'; -export * from './modules/article'; export * from './modules/common'; export { store }; diff --git a/src/store/modules/article.ts b/src/store/modules/article.ts deleted file mode 100644 index d42c0d6f..00000000 --- a/src/store/modules/article.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ref, computed } from 'vue'; -import { defineStore } from 'pinia'; -export const articleStore = defineStore('article', () => { - // 文章是否需要调接口判断 - const is_article_api = ref(false); - // 文章数据 - const article = ref([]); - // 存储文章数据 - const set_article = (data: select_1[]) => { - article.value = data; - is_article_api.value = true; - }; - // 如果为false 则转为true - const set_is_article_api = (bool: boolean) => { - is_article_api.value = bool; - }; - - return { - article, - is_article_api, - set_article, - set_is_article_api, - }; -});