mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-05 19:41:43 +08:00
43 lines
697 B
Vue
43 lines
697 B
Vue
const { mock } = require('mockjs')
|
|
|
|
module.exports = [
|
|
{
|
|
url: '/personalCenter/getList',
|
|
type: 'post',
|
|
response(config) {
|
|
return {
|
|
code: 200,
|
|
msg: 'success',
|
|
totalCount: 999,
|
|
data: mock({
|
|
'data|10': [
|
|
{
|
|
id: '@id',
|
|
},
|
|
],
|
|
}).data,
|
|
}
|
|
},
|
|
},
|
|
{
|
|
url: '/personalCenter/doEdit',
|
|
type: 'post',
|
|
response() {
|
|
return {
|
|
code: 200,
|
|
msg: '模拟保存成功',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
url: '/personalCenter/doDelete',
|
|
type: 'post',
|
|
response() {
|
|
return {
|
|
code: 200,
|
|
msg: '模拟删除成功',
|
|
}
|
|
},
|
|
},
|
|
]
|