New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

taro-plugin-pinia

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taro-plugin-pinia

Taro&vue3 支持使用 Pinia 进行状态管理的插件

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

taro-plugin-pinia

Taro & vue3 支持使用 Pinia 进行状态管理的插件

安装

安装 pinia

yarn add pinia
# or with npm
npm install pinia

安装 taro-plugin-pinia 插件

yarn add taro-plugin-pinia
# or with npm
npm install taro-plugin-pinia

配置

项目配置文件 config/index.js 中配置:

// ...
plugins: [
  'taro-plugin-pinia'
]
// ...

使用

引入

// src/app.js

// ...

import { createPinia } from 'pinia'

App.use(createPinia())

Pinia 具体使用方法,请参考官网

Keywords

FAQs

Package last updated on 26 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc