热门
最新
红包
立Flag
投票
同城
我的
发布
《pinia 的使用(vue3)》
pinia 的使用
下载引入 pinia
npm install pinia
// main.ts (vue3 )
import { createPinia } from 'pinia';
app.use(createPinia());
创建 store>index.ts 文件
import { defineStore } from 'pinia'
// 主要的全局数据 main只是描述信息
export const useMainStore = defineStore('main', {
——来自博客 https://blog.csdn.net/chengtiandi/article/details/123257373
你感兴趣的前端方向(多选)
1 人已经参与 已结束
vue3/vite
0人
react
0人
nuxt
0人
three.js
1人
HarmonyOS
0人
web3.js(区块链)
0人
web app
0人
CSDN App 扫码分享
评论
点赞
- 复制链接
- 举报
下一条:
有没有代做离散数学题的?