refactor: 使用vite-plugin-fake-server替换vite-plugin-mock,使用@faker-js/faker替换mockjs (#763)

This commit is contained in:
xiaoming
2023-11-10 12:33:22 +08:00
committed by GitHub
parent 743691ba5d
commit 6e195c8b5c
12 changed files with 1393 additions and 1302 deletions

View File

@@ -1,7 +1,7 @@
import { MockMethod } from "vite-plugin-mock";
import { defineFakeRoute } from "vite-plugin-fake-server/client";
// 模拟刷新token接口
export default [
export default defineFakeRoute([
{
url: "/refresh-token",
method: "post",
@@ -24,4 +24,4 @@ export default [
}
}
}
] as MockMethod[];
]);