vue项目中引入pinia


npm install pinia

 

import { createApp } from 'vue'
import { createPinia } from "pinia";

import App from './App.vue'
import "./styles/index.scss";

import ElementUI from "element-plus";
import "element-plus/theme-chalk/index.css";

const app = createApp(App);

app.use(createPinia());
app.use(ElementUI);
// app.use(router);

app.mount("#app");

发布时间 : 2025-08-22,阅读量:2
本文链接:https://upwqy.com/details/986.html
Vue: Cannot find module ../views/HelloWorld.vue or its corresponding type declarations. php nesbot/carbon 使用示例