From 98fb990a3406ff53aefb67a38b49d43705b8552d Mon Sep 17 00:00:00 2001 From: simple321vip Date: Mon, 22 Aug 2022 21:54:15 +0800 Subject: [PATCH] 1111 --- src/api/blogView.ts | 17 ++++++++++++++++- src/const/config.ts | 2 +- src/view/blog/index.vue | 19 ++++++++++++++++--- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/src/api/blogView.ts b/src/api/blogView.ts index 0d9f1f1..76a2efc 100644 --- a/src/api/blogView.ts +++ b/src/api/blogView.ts @@ -32,4 +32,19 @@ const getBlog = (bid: string) => { }) } -export { getBlogs, getBlog, getBtName } \ No newline at end of file +const publishAll = () => { + return request({ + url: '/auth/api/v1/reader/blogs/publish/all', + method: 'GET' + }) +} + +const publish = (bid: string) => { + return request({ + url: '/auth/api/v1/reader/blogs/publish/' + bid, + method: 'GET' + }) +} + + +export { getBlogs, getBlog, getBtName, publish, publishAll } \ No newline at end of file diff --git a/src/const/config.ts b/src/const/config.ts index 904ead7..fa7388d 100644 --- a/src/const/config.ts +++ b/src/const/config.ts @@ -20,7 +20,7 @@ const configObj: any = { CLIENT_ID: '&client_id=' + 'BIukdHDXeNPmIXe96GA6OOXGgnP5GEhM', REDIRECT_URI: '&redirect_uri=' + 'http://localhost:8080/auth/api/v1/authorize/baidu', SCOPE: '&scope=basic,netdisk', - DEVICE_ID: '&device_id=26202308', + DEVICE_ID: '&device_id=27103657', QR_CODE: '&qrcode=' + '1', DISPLAY: '&display=popup' } diff --git a/src/view/blog/index.vue b/src/view/blog/index.vue index eb9b805..b54e855 100644 --- a/src/view/blog/index.vue +++ b/src/view/blog/index.vue @@ -28,20 +28,26 @@ 创作 + 全部重新发布

{{ item.title }}

- {{ item.bid }} +
+

{{ + item.content + }}

+ 重新发布 + +
-