Browse Source

add a select option and use it

night-cherry 1 tháng trước cách đây
mục cha
commit
be062c637b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -40,7 +40,7 @@ const changelang = type => {
 **/
 //import router from "./router.vue";
 import router from "./router.js";
-
+import ElementPlus from 'element-plus'
 //console.log(createApp);
 //console.log(i18n);
 console.log(router);
@@ -104,7 +104,7 @@ changelang(type){
     window.locale=locale;
     console.log("-------after get locale--------");
   }
-}).use(i18n).use(router).mount("#app");
+}).use(ElementPlus).use(i18n).use(router).mount("#app");
 //Vue.createApp(app).mount("#app");
                                                      
 console.log("end the vue template render");