docs: update pinia links (#415)
This commit is contained in:
parent
47d4b06c98
commit
c747a0ca6b
@ -79,7 +79,7 @@ Mocking up web app with <b>Vitesse</b><sup><em>(speed)</em></sup><br>
|
|||||||
- [Vue Router](https://github.com/vuejs/router)
|
- [Vue Router](https://github.com/vuejs/router)
|
||||||
- [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) - file system based routing
|
- [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) - file system based routing
|
||||||
- [`vite-plugin-vue-layouts`](https://github.com/JohnCampionJr/vite-plugin-vue-layouts) - layouts for pages
|
- [`vite-plugin-vue-layouts`](https://github.com/JohnCampionJr/vite-plugin-vue-layouts) - layouts for pages
|
||||||
- [Pinia](https://pinia.esm.dev) - Intuitive, type safe, light and flexible Store for Vue using the composition api
|
- [Pinia](https://pinia.vuejs.org) - Intuitive, type safe, light and flexible Store for Vue using the composition api
|
||||||
- [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - components auto import
|
- [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - components auto import
|
||||||
- [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - Directly use Vue Composition API and others without importing
|
- [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - Directly use Vue Composition API and others without importing
|
||||||
- [`vite-plugin-pwa`](https://github.com/antfu/vite-plugin-pwa) - PWA
|
- [`vite-plugin-pwa`](https://github.com/antfu/vite-plugin-pwa) - PWA
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
- 📦 [组件自动化加载](./src/components)
|
- 📦 [组件自动化加载](./src/components)
|
||||||
|
|
||||||
- 🍍 [使用 Pinia 的状态管理](https://pinia.esm.dev/)
|
- 🍍 [使用 Pinia 的状态管理](https://pinia.vuejs.org)
|
||||||
|
|
||||||
- 📑 [布局系统](./src/layouts)
|
- 📑 [布局系统](./src/layouts)
|
||||||
|
|
||||||
@ -77,7 +77,7 @@
|
|||||||
- [Vue Router](https://github.com/vuejs/router)
|
- [Vue Router](https://github.com/vuejs/router)
|
||||||
- [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) - 以文件系统为基础的路由
|
- [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) - 以文件系统为基础的路由
|
||||||
- [`vite-plugin-vue-layouts`](https://github.com/JohnCampionJr/vite-plugin-vue-layouts) - 页面布局系统
|
- [`vite-plugin-vue-layouts`](https://github.com/JohnCampionJr/vite-plugin-vue-layouts) - 页面布局系统
|
||||||
- [Pinia](https://pinia.esm.dev) - 直接的, 类型安全的, 使用 Composition api 的轻便灵活的 Vue 状态管理
|
- [Pinia](https://pinia.vuejs.org) - 直接的, 类型安全的, 使用 Composition api 的轻便灵活的 Vue 状态管理
|
||||||
- [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - 自动加载组件
|
- [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - 自动加载组件
|
||||||
- [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - 直接使用 Composition API 等,无需导入
|
- [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - 直接使用 Composition API 等,无需导入
|
||||||
- [`vite-plugin-pwa`](https://github.com/antfu/vite-plugin-pwa) - PWA
|
- [`vite-plugin-pwa`](https://github.com/antfu/vite-plugin-pwa) - PWA
|
||||||
|
@ -2,7 +2,7 @@ import { createPinia } from 'pinia'
|
|||||||
import { type UserModule } from '~/types'
|
import { type UserModule } from '~/types'
|
||||||
|
|
||||||
// Setup Pinia
|
// Setup Pinia
|
||||||
// https://pinia.esm.dev/
|
// https://pinia.vuejs.org/
|
||||||
export const install: UserModule = ({ isClient, initialState, app }) => {
|
export const install: UserModule = ({ isClient, initialState, app }) => {
|
||||||
const pinia = createPinia()
|
const pinia = createPinia()
|
||||||
app.use(pinia)
|
app.use(pinia)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user