mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-06 03:58:00 +08:00
43 lines
714 B
JavaScript
43 lines
714 B
JavaScript
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(config) {
|
|
return {
|
|
code: 200,
|
|
msg: "模拟保存成功",
|
|
};
|
|
},
|
|
},
|
|
{
|
|
url: "/personalCenter/doDelete",
|
|
type: "post",
|
|
response(config) {
|
|
return {
|
|
code: 200,
|
|
msg: "模拟删除成功",
|
|
};
|
|
},
|
|
},
|
|
];
|