增加开发环境 mock

This commit is contained in:
simple321vip
2022-10-26 21:56:32 +08:00
parent bf00737dd9
commit 7ffde47b21
11 changed files with 541 additions and 17 deletions
+13
View File
@@ -0,0 +1,13 @@
import { MockMethod } from 'vite-plugin-mock'
export default [
{
url: '/auth/api/v1/authorize',
method: 'post',
response: () => {
return {
token: "ABCDEFG"
}
}
}
] as MockMethod[]