const App = { data() { return { userdata: { username: '', password: '', }, }; }, mounted() { }, created() { }, methods: { } }; const app = Vue.createApp(App); for (const [key, component] of Object.entries(ElementPlusIconsVue)) { app.component(key, component) } app.use(ElementPlus, { locale: ElementPlusLocaleZhCn, }); app.mount("#vue_item");