소스 검색

default language

night-cherry 1 개월 전
부모
커밋
bcc144186a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      index.js

+ 1 - 0
index.js

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