diff --git a/package.json b/package.json index 77060ff..37a6935 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "@achrinza/node-ipc": "^10.1.10", "axios": "^0.21.1", "core-js": "^3.6.5", "crypto-js": "^4.1.1", diff --git a/src/assets/file/delete.jpg b/src/assets/file/delete.jpg new file mode 100644 index 0000000..f8a2966 Binary files /dev/null and b/src/assets/file/delete.jpg differ diff --git a/src/assets/file/delete.png b/src/assets/file/delete.png new file mode 100644 index 0000000..ad56f27 Binary files /dev/null and b/src/assets/file/delete.png differ diff --git a/src/assets/file/update.jpg b/src/assets/file/update.jpg new file mode 100644 index 0000000..9123edf Binary files /dev/null and b/src/assets/file/update.jpg differ diff --git a/src/assets/file/update.png b/src/assets/file/update.png new file mode 100644 index 0000000..7c66184 Binary files /dev/null and b/src/assets/file/update.png differ diff --git a/src/components/blog.vue b/src/components/blog.vue new file mode 100644 index 0000000..a1ca726 --- /dev/null +++ b/src/components/blog.vue @@ -0,0 +1,926 @@ + + + + + diff --git a/src/components/home.vue b/src/components/home.vue index 20679bd..1a7f4ae 100644 --- a/src/components/home.vue +++ b/src/components/home.vue @@ -45,6 +45,14 @@ + +
  • +
    + ✍️ 博客 +
    +
  • + +
  • diff --git a/src/router/index.js b/src/router/index.js index 9222fcf..5537bb3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -33,6 +33,10 @@ const routes = [ name: "love", component: () => import('../components/love') }, { + path: "/blog", + name: "blog", + component: () => import('../components/blog') + }, { path: "/favorite", name: "favorite", component: () => import('../components/favorite') diff --git a/src/store/index.js b/src/store/index.js index 5e1d741..a8f3832 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -14,6 +14,7 @@ export default new Vuex.Store({ getters: { articleTotal: state => { if (state.sortInfo !== null && state.sortInfo.length !== 0) { + //sortInfo数组为空或者为null,则表示没有文章.不为空则有文章 if (state.sortInfo.length === 1) { return state.sortInfo[0].countOfSort; } else { diff --git a/src/utils/constant.js b/src/utils/constant.js index 3ec19d0..5b866fb 100644 --- a/src/utils/constant.js +++ b/src/utils/constant.js @@ -3,7 +3,7 @@ export default { imBaseURL: "http://localhost:81", webURL: "http://localhost", - // baseURL: "https://.cn/api", + // baseURL: "https://poetize.cn/api", // imBaseURL: "https://poetize.cn/im", // webURL: "https://poetize.cn", @@ -18,8 +18,8 @@ export default { //前后端定义的密钥,AES使用16位 cryptojs_key: "aoligeimeimaobin", qiniuUrl: "https://upload.qiniup.com", - // qiniuDownload: "$$$$七牛云下载地址,仿照【https://file.poetize.cn/】", - qiniuDownload: "http://s6qc8qkjn.hd-bkt.clouddn.com/", + qiniuDownload: "https://s6xqq8hhg.hd-bkt.clouddn.com/", + favoriteVideo: "$$$$自己找一个视频链接作为百宝箱的封面", favoriteVideo2:"http://s6ondx7d9.hd-bkt.clouddn.com/images/340c8040d037c2f3217e8a1ade444fc8.mp4",