From 8d5e18662edab1d6c6452f38aa762eee8cf783fd Mon Sep 17 00:00:00 2001 From: simple321vip Date: Wed, 6 Apr 2022 23:36:52 +0800 Subject: [PATCH] =?UTF-8?q?blog=20=E6=9E=84=E6=80=9D=20=E5=92=8C=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E6=9E=84=E6=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 5 ++++ package.json | 3 +- src/api/blog.ts | 14 ++++++++++ src/components/layout/Layout.vue | 16 +++++++---- src/components/layout/MainApp.vue | 3 +- src/components/layout/SideBar.vue | 4 +-- src/utils/request.ts | 4 +-- src/view/blog/index.vue | 46 +++++++++++++++++++++++++++++-- src/view/bookmark/index.vue | 4 --- src/view/cloud/index.vue | 3 -- 10 files changed, 79 insertions(+), 23 deletions(-) create mode 100644 src/api/blog.ts diff --git a/package-lock.json b/package-lock.json index e6ec02a..31b5843 100644 --- a/package-lock.json +++ b/package-lock.json @@ -908,6 +908,11 @@ "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=" }, + "md-editor-v3": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/md-editor-v3/-/md-editor-v3-1.11.6.tgz", + "integrity": "sha512-+XviAuW092YR2DqY7M141J9QCvmaxi/UyowD9zWo2x1Wfzn85QCYp5fjvPRhutodU7/E+LIAnYiqWznEHCynSw==" + }, "memoize-one": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-6.0.0.tgz", diff --git a/package.json b/package.json index 17c22d5..43a3dbc 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "lodash": "^4.17.21", "lodash-es": "^4.17.21", "lodash-unified": "^1.0.2", + "md-editor-v3": "^1.11.6", "moment": "^2.29.1", "pinia": "^2.0.13", "qs": "^6.10.3", @@ -36,4 +37,4 @@ "vite": "^2.9.0", "vue-tsc": "^0.29.8" } -} \ No newline at end of file +} diff --git a/src/api/blog.ts b/src/api/blog.ts new file mode 100644 index 0000000..1c7e411 --- /dev/null +++ b/src/api/blog.ts @@ -0,0 +1,14 @@ +import request from '../utils/request' +import Qs from 'qs' +const get_blogs = (params: Object) => { + return request({ + url: '/blog', + method: 'get', + params: params, + paramsSerializer: (params) => { + return Qs.stringify(params, { arrayFormat: 'repeat' }) + }, + }) +} + +export { get_blogs } \ No newline at end of file diff --git a/src/components/layout/Layout.vue b/src/components/layout/Layout.vue index 21abb01..5c5c0e3 100644 --- a/src/components/layout/Layout.vue +++ b/src/components/layout/Layout.vue @@ -5,7 +5,9 @@ - + @@ -13,8 +15,8 @@ - 小管设计 -
一个执着于小提琴学习的垃圾程序员 + 小管设计8 +
一个执着于小提琴学习的垃圾程序员1
@@ -28,14 +30,16 @@ import NavBar from "../layout/NavBar.vue"; import SideBar from "../layout/SideBar.vue"; - diff --git a/src/utils/request.ts b/src/utils/request.ts index 0323d70..d82b481 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -2,8 +2,8 @@ import axios from 'axios' const service = axios.create( { - // baseURL: 'http://localhost:8081', - baseURL: 'http://49.233.4.79:8081', + baseURL: 'http://localhost:8081', + // baseURL: 'http://49.233.4.79:8081', timeout: 5000 } ) diff --git a/src/view/blog/index.vue b/src/view/blog/index.vue index afe271c..f92f011 100644 --- a/src/view/blog/index.vue +++ b/src/view/blog/index.vue @@ -1,12 +1,52 @@ \ No newline at end of file diff --git a/src/view/bookmark/index.vue b/src/view/bookmark/index.vue index f3ee70c..afea48a 100644 --- a/src/view/bookmark/index.vue +++ b/src/view/bookmark/index.vue @@ -251,8 +251,4 @@ const copyNumber = (record: Bookmark) => { .create_dialog { margin: 10px; } -.bookmark { - border-top: 1px solid rgba(151, 151, 151, 0.3); - padding-top: 20px; -} \ No newline at end of file diff --git a/src/view/cloud/index.vue b/src/view/cloud/index.vue index 9429439..178138d 100644 --- a/src/view/cloud/index.vue +++ b/src/view/cloud/index.vue @@ -6,7 +6,4 @@ \ No newline at end of file