vue全家桶cdn引入报错怎么办?vue3如何使用cdn引入elementplus
‘ };
const About = { template: ‘
关于
‘ };
// 配置路由
const routes = [
{ path: '/', component: Home },
{ path: '/about', component: About }
];
const router = createRouter({
history: createWebHashHistory(),
routes
});
// 配置状态管理
const pinia = createPinia();
const store = pinia.state;
// 创建应用
const app = createApp({
setup() {
const count = ref(0);
return { count };
}
});
app.use(router);
app.use(pinia);
app.mount('#app');
</script>