+
@@ -17,10 +17,54 @@
+
+
+
+
+
+ *
+ 文章分类
+
+
+
+
+
+
+ {{ tag.name }}
+
+
+ 添加文章标签
+
+
+
+ {{ tags.find(t => t.id === selectedTag).name }}
+
+
+
+
+
+
+
+ 添加封面
+
+
+
+
+
+
+
+
+
+
+
立即发布
-
+
@@ -32,11 +76,11 @@
\ No newline at end of file
diff --git a/src/views/BlogHomeView.vue b/src/views/BlogHomeView.vue
index 9ac47f6..0f31041 100644
--- a/src/views/BlogHomeView.vue
+++ b/src/views/BlogHomeView.vue
@@ -8,16 +8,17 @@
+ :model="['Potion-Maker/Pio', 'school-2017-costume-yellow']" :direction="direction"
+ :size="size">
-
-
-
+
+
@@ -55,6 +56,8 @@ import Footer from "../components/Footer";
// 在组件中引入
import live2d from 'vue-live2d'
import { startSakura } from "../js/Sakura"
+import { IMAGE_BASE_URL } from "../config/ImageUrl";
+
export default {
components: {
HomeHeader,
@@ -117,8 +120,8 @@ export default {
axios.get("/blog/getBlogs").then((response) => {
that.blogs = response.data;
for (let index in that.blogs) {
- that.blogs[index].imageUrl = this.imageUrls[index % 8];
- console.log(that.blogs[index].imageUrl);
+ that.blogs[index].coverImage = IMAGE_BASE_URL + that.blogs[index].coverImage;
+ console.log(that.blogs[index].coverImage);
}
that.total = that.blogs.length; //总博客数
that.handleCurrentChange(that.currentPage); //初始化当前页
@@ -128,10 +131,8 @@ export default {
const startIndex = (page - 1) * this.pageSize; //当前页的起始索引
const endIndex = startIndex + this.pageSize; //当前页的结束索引
this.pagedBlogs = this.blogs.slice(startIndex, endIndex); //通过分割获取当前页的数据
-
-
},
-
+
show() {
!function () {
function n(n, e, t) {