night-cherry 1 hónapja
szülő
commit
3e1c042075
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -117,8 +117,8 @@ const app=createApp({
 //    否则无法让methods中的方法调用其中的变量(全局变量)
 //    如果封装在组件中,然后提供给父组件使用,则直接定义函数即可
     window.locale=locale;
-    this.locale=locale;
-    console.log("this.local : "+this.locale);
+    // this.locale=locale;
+    // console.log("this.local : "+this.locale);
     console.log("-------after get locale--------");
   }
 }).use(i18n).use(router).use(ElementPlus).mount("#app");