feat: ✨ 补充mock接口
Former-commit-id: 9e1a5128d6ac9d8161240d224324b79c5e4f3dcc
This commit is contained in:
30
mock/dept.ts
Normal file
30
mock/dept.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { MockMethod } from "vite-plugin-mock";
|
||||
|
||||
export default [
|
||||
{
|
||||
url: "/api/v1/dept/options",
|
||||
method: "get",
|
||||
response: () => {
|
||||
return {
|
||||
code: "00000",
|
||||
data: [
|
||||
{
|
||||
value: 1,
|
||||
label: "有来技术",
|
||||
children: [
|
||||
{
|
||||
value: 2,
|
||||
label: "研发部门",
|
||||
},
|
||||
{
|
||||
value: 3,
|
||||
label: "测试部门",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
msg: "一切ok",
|
||||
};
|
||||
},
|
||||
},
|
||||
] as MockMethod[];
|
||||
Reference in New Issue
Block a user