This commit is contained in:
2024-10-23 21:10:25 +08:00
commit a9c9bfb2d3
238 changed files with 49119 additions and 0 deletions

10
mock/base.ts Normal file
View File

@ -0,0 +1,10 @@
import path from "path";
import { createDefineMock } from "vite-plugin-mock-dev-server";
export const defineMock = createDefineMock((mock) => {
// 拼接url
mock.url = path.join(
import.meta.env.VITE_APP_BASE_API + "/api/v1/",
mock.url
);
});