将dashboard和login以外的页面设置为异步加载,以提升初次加载的速度
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ const sortBlogs = (data: Object, btId: string) => {
|
||||
|
||||
const countBlogs = () => {
|
||||
return service({
|
||||
url: '/wiki/api/v1/author/blogs/count',
|
||||
url: '/wiki/api/v1/reader/blogs/count',
|
||||
method: 'GET',
|
||||
headers: headers,
|
||||
})
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ const delete_bookmarks = (params: Object) => {
|
||||
|
||||
const bookmarks_count = () => {
|
||||
return service({
|
||||
url: '/wiki/api/v1/author/blogs/count',
|
||||
url: '/bookmark/api/v1/bookmark/count',
|
||||
method: 'GET',
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import { service } from '../utils/request'
|
||||
|
||||
const headers = {
|
||||
'Content-Type': 'application/json;charsetset=UTF-8'
|
||||
}
|
||||
|
||||
const put_event = (data: Object) => {
|
||||
return service({
|
||||
url: '/calendar/api/v1/event',
|
||||
@@ -12,6 +16,7 @@ const get_event = () => {
|
||||
return service({
|
||||
url: '/calendar/api/v1/event',
|
||||
method: 'GET',
|
||||
headers: headers
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user