Explorar o código

fix:解决vue-i18n在开发环境下的告警

张益铭 %!s(int64=4) %!d(string=hai) anos
pai
achega
f2db3acee2
Modificáronse 3 ficheiros con 31 adicións e 30 borrados
  1. 29 29
      package-lock.json
  2. 1 1
      package.json
  3. 1 0
      vite.config.ts

+ 29 - 29
package-lock.json

@@ -25,45 +25,45 @@
       }
     },
     "@intlify/core-base": {
-      "version": "9.0.0-rc.8",
-      "resolved": "http://192.168.250.101:4873/@intlify%2fcore-base/-/core-base-9.0.0-rc.8.tgz",
-      "integrity": "sha1-Z0uIwxPL5HG7ZvUt0JBxBrAeHDg=",
+      "version": "9.0.0",
+      "resolved": "http://192.168.250.101:4873/@intlify%2fcore-base/-/core-base-9.0.0.tgz",
+      "integrity": "sha1-PeIjuFMsU10CLlvlj31Wom0vsS8=",
       "requires": {
-        "@intlify/message-compiler": "9.0.0-rc.8",
-        "@intlify/message-resolver": "9.0.0-rc.8",
-        "@intlify/runtime": "9.0.0-rc.8",
-        "@intlify/shared": "9.0.0-rc.8"
+        "@intlify/message-compiler": "9.0.0",
+        "@intlify/message-resolver": "9.0.0",
+        "@intlify/runtime": "9.0.0",
+        "@intlify/shared": "9.0.0"
       }
     },
     "@intlify/message-compiler": {
-      "version": "9.0.0-rc.8",
-      "resolved": "http://192.168.250.101:4873/@intlify%2fmessage-compiler/-/message-compiler-9.0.0-rc.8.tgz",
-      "integrity": "sha1-ssKRtyiFiqb6V7YymoBsGszIRQs=",
+      "version": "9.0.0",
+      "resolved": "http://192.168.250.101:4873/@intlify%2fmessage-compiler/-/message-compiler-9.0.0.tgz",
+      "integrity": "sha1-ihB5+K683jMFfOdpgXaRzietPg0=",
       "requires": {
-        "@intlify/message-resolver": "9.0.0-rc.8",
-        "@intlify/shared": "9.0.0-rc.8",
+        "@intlify/message-resolver": "9.0.0",
+        "@intlify/shared": "9.0.0",
         "source-map": "0.6.1"
       }
     },
     "@intlify/message-resolver": {
-      "version": "9.0.0-rc.8",
-      "resolved": "http://192.168.250.101:4873/@intlify%2fmessage-resolver/-/message-resolver-9.0.0-rc.8.tgz",
-      "integrity": "sha1-CTguY5ApjWeGzFPEg9QkDkZU7Bc="
+      "version": "9.0.0",
+      "resolved": "http://192.168.250.101:4873/@intlify%2fmessage-resolver/-/message-resolver-9.0.0.tgz",
+      "integrity": "sha1-AHfsJGBrZIbSOL3vkETidyn0eCw="
     },
     "@intlify/runtime": {
-      "version": "9.0.0-rc.8",
-      "resolved": "http://192.168.250.101:4873/@intlify%2fruntime/-/runtime-9.0.0-rc.8.tgz",
-      "integrity": "sha1-vl0cd2u6Jni1HDwEktRnapEJIco=",
+      "version": "9.0.0",
+      "resolved": "http://192.168.250.101:4873/@intlify%2fruntime/-/runtime-9.0.0.tgz",
+      "integrity": "sha1-v5QV/5DHRqm+OKXDL3HLvphI7ug=",
       "requires": {
-        "@intlify/message-compiler": "9.0.0-rc.8",
-        "@intlify/message-resolver": "9.0.0-rc.8",
-        "@intlify/shared": "9.0.0-rc.8"
+        "@intlify/message-compiler": "9.0.0",
+        "@intlify/message-resolver": "9.0.0",
+        "@intlify/shared": "9.0.0"
       }
     },
     "@intlify/shared": {
-      "version": "9.0.0-rc.8",
-      "resolved": "http://192.168.250.101:4873/@intlify%2fshared/-/shared-9.0.0-rc.8.tgz",
-      "integrity": "sha1-Cxs4ejI31K6VSW6K5gzsJnYl9V0="
+      "version": "9.0.0",
+      "resolved": "http://192.168.250.101:4873/@intlify%2fshared/-/shared-9.0.0.tgz",
+      "integrity": "sha1-2Fs7X5Az83fFzyICzyRZqkmUjzY="
     },
     "@popperjs/core": {
       "version": "2.7.0",
@@ -909,12 +909,12 @@
       }
     },
     "vue-i18n": {
-      "version": "9.0.0-rc.8",
-      "resolved": "http://192.168.250.101:4873/vue-i18n/-/vue-i18n-9.0.0-rc.8.tgz",
-      "integrity": "sha1-NtAiUWzyUnzgLuz53hFrl44WPaM=",
+      "version": "9.0.0",
+      "resolved": "http://192.168.250.101:4873/vue-i18n/-/vue-i18n-9.0.0.tgz",
+      "integrity": "sha1-oExB1e09WgaOkjUXv6oKvLyE4XQ=",
       "requires": {
-        "@intlify/core-base": "9.0.0-rc.8",
-        "@intlify/shared": "9.0.0-rc.8",
+        "@intlify/core-base": "9.0.0",
+        "@intlify/shared": "9.0.0",
         "@vue/devtools-api": "^6.0.0-beta.5"
       }
     },

+ 1 - 1
package.json

@@ -20,7 +20,7 @@
     "screenfull": "^5.1.0",
     "v-contextmenu": "^3.0.0-alpha.4",
     "vue": "^3.0.6",
-    "vue-i18n": "^9.0.0-rc.8",
+    "vue-i18n": "^9.0.0",
     "vue-router": "^4.0.4",
     "vuedraggable": "^4.0.1",
     "vuex": "^4.0.0",

+ 1 - 0
vite.config.ts

@@ -13,6 +13,7 @@ const { VITE_PORT, VITE_PUBLIC_PATH, VITE_PROXY, VITE_OPEN } = loadEnv()
 
 const alias: Record<string, string> = {
   '/@': pathResolve('src'),
+  'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js' //解决警告You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.
 }
 
 const root: string = process.cwd()