Skip to content

Commit

Permalink
chore: 只导入中文和后备语言英文
Browse files Browse the repository at this point in the history
  • Loading branch information
condorheroblog committed Jan 14, 2024
1 parent 01f501e commit 602cd32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fake/dashboard.fake.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { faker } from "@faker-js/faker";
import { faker } from "@faker-js/faker/locale/zh_CN";
import { defineFakeRoute } from "vite-plugin-fake-server/client";

import { resultSuccess } from "./utils";
Expand Down
2 changes: 1 addition & 1 deletion fake/user.fake.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { faker } from "@faker-js/faker";
import { faker } from "@faker-js/faker/locale/zh_CN";
import { defineFakeRoute } from "vite-plugin-fake-server/client";

import { resultSuccess } from "./utils";
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default defineConfig({
setupFiles: ["./src/setupTests.ts"],
},
server: {
port: 3000,
port: 3333,
},
define: {
__APP_INFO__: JSON.stringify(__APP_INFO__),
Expand All @@ -34,6 +34,7 @@ export default defineConfig({
manualChunks: {
react: ["react", "react-dom", "react-router-dom"],
antd: ["antd", "@ant-design/icons"],
faker: ["@faker-js/faker"],
},
},
},
Expand Down

1 comment on commit 602cd32

@condorheroblog
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.