Browse Source

fix: Fix multi-language errors and installation errors

vben 3 years ago
parent
commit
2aabbc788a
4 changed files with 158 additions and 234 deletions
  1. 5 4
      package.json
  2. 152 229
      pnpm-lock.yaml
  3. 1 0
      src/App.vue
  4. 0 1
      vite.config.ts

+ 5 - 4
package.json

@@ -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",

File diff suppressed because it is too large
+ 152 - 229
pnpm-lock.yaml


+ 1 - 0
src/App.vue

@@ -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();
 

+ 0 - 1
vite.config.ts

@@ -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'],
     },
   };
 };

Some files were not shown because too many files changed in this diff