fix: Fix multi-language errors and installation errors

This commit is contained in:
vben 2021-11-26 00:09:08 +08:00
parent bc18ecb277
commit 2aabbc788a
4 changed files with 455 additions and 700 deletions

View File

@ -128,14 +128,14 @@
"ts-jest": "^27.0.7",
"ts-node": "^10.4.0",
"typescript": "^4.5.2",
"vite": "^2.6.14",
"vite-plugin-compression": "^0.3.5",
"vite": "^2.7.0-beta.8 ",
"vite-plugin-compression": "^0.3.6",
"vite-plugin-html": "^2.1.1",
"vite-plugin-imagemin": "^0.4.6",
"vite-plugin-mock": "^2.9.6",
"vite-plugin-purge-icons": "^0.7.0",
"vite-plugin-pwa": "^0.11.7",
"vite-plugin-style-import": "^1.3.0",
"vite-plugin-style-import": "^1.4.0",
"vite-plugin-svg-icons": "^1.0.5",
"vite-plugin-theme": "^0.8.1",
"vite-plugin-vue-setup-extend": "^0.1.0",
@ -146,7 +146,8 @@
"resolutions": {
"//": "Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it",
"bin-wrapper": "npm:bin-wrapper-china",
"rollup": "^2.56.3"
"rollup": "^2.56.3",
"gifsicle": "5.2.0"
},
"repository": {
"type": "git",

1144
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -12,6 +12,7 @@
import { useTitle } from '/@/hooks/web/useTitle';
import { useLocale } from '/@/locales/useLocale';
import 'dayjs/locale/zh-cn';
// support Multi-language
const { getAntdLocale } = useLocale();

View File

@ -99,7 +99,6 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
'ant-design-vue/es/locale/zh_CN',
'ant-design-vue/es/locale/en_US',
],
exclude: ['vue-demi'],
},
};
};