6 changed files with 71 additions and 24 deletions
-
2.eslintrc.cjs
-
3package.json
-
16pnpm-lock.yaml
-
21src/pages/my/my.vue
-
10src/stores/index.ts
-
43src/stores/modules/member.ts
@ -1,7 +1,13 @@ |
|||
import { createPinia } from 'pinia' |
|||
import persist from 'pinia-plugin-persistedstate' |
|||
|
|||
// 创建pinia实例
|
|||
// 创建 pinia 实例
|
|||
const pinia = createPinia() |
|||
// 使用持久化存储插件
|
|||
pinia.use(persist) |
|||
|
|||
// 导出pinia实例,给main使用
|
|||
// 默认导出,给 main.ts 使用
|
|||
export default pinia |
|||
|
|||
// 模块统一导出
|
|||
export * from './modules/member' |
Write
Preview
Loading…
Cancel
Save
Reference in new issue