From 3cc7af680b49aae061a75568466784c08a49e80f Mon Sep 17 00:00:00 2001 From: shiluo <894026806@qq.com> Date: Fri, 10 Mar 2023 19:57:45 +0800 Subject: [PATCH 1/2] feat: 1 --- src/assets copy/scss/common/_themes.scss | 4 +- src/components/ArticleClassify.vue | 5 +- src/components/ArticleList.vue | 2 + src/components/ArticleTag.vue | 68 +++++++++++++ src/components/ReadMod.vue | 5 +- src/i18n/demo.html | 107 --------------------- src/i18n/language.ts | 2 + src/store/index.js | 53 +++++++++-- src/views/Archive-Classify.vue | 24 +++-- src/views/Archive.vue | 116 +++++++++++++++++++++-- src/views/Article.vue | 12 ++- src/views/Detail.vue | 4 +- src/views/HomeView.vue | 5 + src/views/SearchPage.vue | 4 +- 14 files changed, 273 insertions(+), 138 deletions(-) create mode 100644 src/components/ArticleTag.vue delete mode 100644 src/i18n/demo.html diff --git a/src/assets copy/scss/common/_themes.scss b/src/assets copy/scss/common/_themes.scss index 103a4f5..eb77a84 100644 --- a/src/assets copy/scss/common/_themes.scss +++ b/src/assets copy/scss/common/_themes.scss @@ -2,7 +2,7 @@ $themes: ( light: ( background_color: #f2f2f2, //背景色 - background_color2: rgb(16, 102, 136), + background_color2: #fff, text-color: #000, // 主文本色 ), @@ -13,5 +13,5 @@ $themes: ( //背景 text-color: #fff, // 主文本色 - ) + ), ); diff --git a/src/components/ArticleClassify.vue b/src/components/ArticleClassify.vue index 40d268e..61bfb76 100644 --- a/src/components/ArticleClassify.vue +++ b/src/components/ArticleClassify.vue @@ -1,4 +1,5 @@ @@ -28,8 +29,9 @@ import { useStore } from 'vuex' import { computed } from 'vue' import ArticleList from '../components/ArticleList.vue' import ReadMod from '../components/ReadMod.vue' +import ArticleTag from '../components/ArticleTag.vue' export default { - components: { ArticleList, ReadMod }, + components: { ArticleList, ReadMod, ArticleTag }, setup() { let store = useStore() store.dispatch('getClassify') @@ -40,25 +42,29 @@ export default { const articleClassify = computed(() => { return store.state.classifyList }) - console.log('111', articleClassify) return { articleList, articleClassify } }, } diff --git a/src/views/SearchPage.vue b/src/views/SearchPage.vue index e810f2d..9d80e7a 100644 --- a/src/views/SearchPage.vue +++ b/src/views/SearchPage.vue @@ -50,6 +50,7 @@ export default defineComponent({ })