将dashboard和login以外的页面设置为异步加载,以提升初次加载的速度

This commit is contained in:
simple321vip
2023-02-02 23:01:02 +08:00
parent 8cca267578
commit e612383d12
8 changed files with 37 additions and 31 deletions
+5
View File
@@ -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
})
}