فهرست منبع

修复白屏报错(vue-i18n版本问题,小于9.2的版本就不会报错),更换ico

yanglzh 3 سال پیش
والد
کامیت
210fa09c99
4فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 1 1
      package.json
  2. BIN
      public/favicon.ico
  3. 0 1
      src/i18n/index.ts
  4. 1 1
      src/views/login/index.vue

+ 1 - 1
package.json

@@ -33,7 +33,7 @@
     "vue": "^3.2.31",
     "vue-clipboard3": "^1.0.1",
     "vue-grid-layout": "^3.0.0-beta1",
-    "vue-i18n": "^9.1.9",
+    "vue-i18n": "9.1.10",
     "vue-router": "^4.0.13",
     "vuex": "^4.0.2",
     "wangeditor": "^4.7.12"

BIN
public/favicon.ico


+ 0 - 1
src/i18n/index.ts

@@ -50,7 +50,6 @@ const messages = {
 
 // 导出语言国际化
 export const i18n = createI18n({
-	legacy: false,
 	locale: store.state.themeConfig.themeConfig.globalI18n,
 	fallbackLocale: zhcnLocale.name,
 	messages,

+ 1 - 1
src/views/login/index.vue

@@ -56,7 +56,7 @@ interface LoginState {
 
 export default defineComponent({
 	name: 'loginIndex',
-	components: { Account, Mobile, Scan,amis },
+	components: { Account, Mobile, Scan, amis },
 	data: function () {
 		return {
 			amisjson: {