mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-06 03:58:00 +08:00
43 lines
722 B
JavaScript
43 lines
722 B
JavaScript
import { mock } from "mockjs";
|
|
|
|
export default [
|
|
{
|
|
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: "模拟删除成功",
|
|
};
|
|
},
|
|
},
|
|
];
|