diff --git a/index.html b/index.html index 325abbb..6bff897 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - + SunFree diff --git a/src/stores/index.ts b/src/stores/index.ts index 93b1c05..88c042f 100644 --- a/src/stores/index.ts +++ b/src/stores/index.ts @@ -63,6 +63,8 @@ export const blogStore = defineStore("blog", () => { ids: "", title:"" }) + const isEmpty=ref(false) + const isPage=ref(true) const formControl = ref({ open: false, ids: null @@ -71,7 +73,7 @@ export const blogStore = defineStore("blog", () => { const setReadCount=(num:number)=>{ readcount.value+=num } - return { delControl,formControl,readcount,setReadCount } + return { delControl,formControl,readcount,isEmpty,isPage,setReadCount } }) export const useContentStore = defineStore('content', () => { const content = ref({ text: "" }); @@ -94,9 +96,10 @@ export const diaryStore = defineStore("diary", () => { ids: null, title:"" }) - + const isEmpty=ref(false) + const isPage=ref(true) - return { delControl } + return { delControl,isEmpty,isPage } }) export const classticStore = defineStore("classtic", () => { const addControl = reactive({ diff --git a/src/views/blog/HomePageView.vue b/src/views/blog/HomePageView.vue index cadc259..6b20852 100644 --- a/src/views/blog/HomePageView.vue +++ b/src/views/blog/HomePageView.vue @@ -32,8 +32,8 @@
-
- +
+
{{ article.blogcontent }} @@ -81,8 +81,8 @@
-
- +
+
@@ -207,6 +207,25 @@ watch(() => homepageStore.homepagelist, () => { margin: 48px; } +.blogs .image-container { + width: 300px; + +} + +.blogs .responsive-image { + width: 100%; + height: auto; +} +.diarys .image-container { + width: 1000px; + +} + +.diarys .responsive-image { + width: 100%; + height: auto; +} + .main .blog-content>:first-child { padding: 4px; border: 2px solid #ccc; diff --git a/src/views/blog/blogcontent/BlogListView.vue b/src/views/blog/blogcontent/BlogListView.vue index 05284ab..7b2ce37 100644 --- a/src/views/blog/blogcontent/BlogListView.vue +++ b/src/views/blog/blogcontent/BlogListView.vue @@ -48,7 +48,7 @@
-