增加日历组件

This commit is contained in:
simple321vip
2023-01-29 20:12:16 +08:00
parent 98c45b3591
commit d1a4e48708
14 changed files with 319 additions and 9 deletions
+30
View File
@@ -0,0 +1,30 @@
import { MockMethod } from 'vite-plugin-mock'
export default [
{
url: '/calendar/api/v1/event',
method: 'get',
response: () => {
return [
{
date: '2023-01-09',
title: '春游',
eventInfo: '春节不觉晓,处处闻啼鸟,夜来风雨声,花落知多少',
},
{
date: '2023-01-30',
title: '月底发工资',
eventInfo: '发了工资少一半,还了信用卡再少一半,试问如何攒下钱,只有两个字:做梦',
}
]
}
},
{
url: '/calendar/api/v1/event',
method: 'put',
response: () => {
return {
}
}
},
] as MockMethod[]