//导入pinia import * as Pinia from 'pinia' //创建pinia实例 const pinia=Pinia.createPinia(); //使用pinia app.use(pinia); return { app, Pinia }