From 8705e7fd1fa9c77d814f3fd088ebf339f613621f Mon Sep 17 00:00:00 2001 From: sunfree <17315650350@163.com> Date: Mon, 5 Aug 2024 09:06:12 +0800 Subject: [PATCH] add new --- index.html | 2 +- src/components/blogs/header/CarouselImg.vue | 6 +- src/stores/index.ts | 3 +- src/tools/request.ts | 2 +- src/types/custom.d.ts | 10 +++ src/views/admin/ClassticManageView.vue | 15 +++-- src/views/admin/CommonLinkManageView.vue | 19 ++++-- src/views/admin/blogmanage/BlogLabelView.vue | 2 +- .../admin/diarymanage/DiaryManageView.vue | 10 ++- src/views/admin/diarymanage/DiaryTypeView.vue | 3 + src/views/blog/AboutMe.vue | 14 ----- src/views/blog/AmountChartView.vue | 61 ++++++++++--------- src/views/blog/ContentDetail.vue | 1 + src/views/blog/blogcontent/BlogListView.vue | 18 +----- 14 files changed, 87 insertions(+), 79 deletions(-) diff --git a/index.html b/index.html index a888544..325abbb 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Vite App + SunFree
diff --git a/src/components/blogs/header/CarouselImg.vue b/src/components/blogs/header/CarouselImg.vue index 1e4b827..d4a921a 100644 --- a/src/components/blogs/header/CarouselImg.vue +++ b/src/components/blogs/header/CarouselImg.vue @@ -12,9 +12,9 @@ import { toRefs } from 'vue'; const { idShow } = homePageStore() const { show_carousel } = toRefs(idShow) const imgdatas: string[] = [ - "/src/assets/images/nav01.jpg", - "/src/assets/images/nav02.jpg", - "/src/assets/images/nav03.jpg" + "http://www.wuruilin.cn/personself/nav01.jpg", + "http://www.wuruilin.cn/personself/nav02.jpg", + "http://www.wuruilin.cn/personself/nav03.jpg" ] diff --git a/src/stores/index.ts b/src/stores/index.ts index 987bc5f..93b1c05 100644 --- a/src/stores/index.ts +++ b/src/stores/index.ts @@ -20,6 +20,7 @@ export const homePageStore = defineStore("homePage", () => { get(`/statistics/searchtitle?title=${query}`).then(res => { homepagelist.value = res.data.data.map((items:any)=>({ ...items, + imglink: items.imglink || 'http://www.wuruilin.cn/personself/暂无图片.jpg', create_at:dayjs(items.create_at).format('YYYY-MM-DD HH:mm:ss'), update_at: dayjs(items.update_at).format('YYYY-MM-DD HH:mm:ss'), })); @@ -107,7 +108,7 @@ export const classticStore = defineStore("classtic", () => { const delControl = reactive({ open: false, - ids: "" + ids: "", }) const editControl = reactive({ diff --git a/src/tools/request.ts b/src/tools/request.ts index e8e799e..b71f8c7 100644 --- a/src/tools/request.ts +++ b/src/tools/request.ts @@ -3,7 +3,7 @@ import { type AxiosRequestConfig } from 'axios'; import router from '@/router'; const instance = axios.create({ // 添加url - baseURL: 'http://localhost:8000/', + baseURL: 'http://www.wuruilin.cn:8000/', timeout: 5000, }); diff --git a/src/types/custom.d.ts b/src/types/custom.d.ts index 705ce1b..b88350e 100644 --- a/src/types/custom.d.ts +++ b/src/types/custom.d.ts @@ -2,4 +2,14 @@ // declare module 'echarts'; // declare module 'ant-design-vue/es/menu' // declare module 'animejs/lib/anime.es.js' +declare module '@kangc/v-md-editor/lib/plugins/tip/index' +declare module '@kangc/v-md-editor/lib/plugins/line-number/index' +declare module '@kangc/v-md-editor/lib/plugins/align' +declare module '@kangc/v-md-editor/lib/plugins/copy-code/index' +declare module '@kangc/v-md-editor/lib/plugins/todo-list/index' +declare module 'codemirror' +declare module '@kangc/v-md-editor/lib/theme/github.js' +declare module '@kangc/v-md-editor/lib/codemirror-editor' +declare module '@kangc/v-md-editor/lib/plugins/emoji/index' +declare module '@kangc/v-md-editor/lib/preview' declare module 'APlayer' diff --git a/src/views/admin/ClassticManageView.vue b/src/views/admin/ClassticManageView.vue index dba1a01..d29380d 100644 --- a/src/views/admin/ClassticManageView.vue +++ b/src/views/admin/ClassticManageView.vue @@ -10,7 +10,7 @@