feat: 更新sdk说明文档
This commit is contained in:
parent
077f431583
commit
f5358fea62
@ -7,6 +7,13 @@
|
|||||||
`git subtree pull --prefix=starCloud git@code.star-lock.cn:xhj/starcloud-sdk-uniapp.git master`
|
`git subtree pull --prefix=starCloud git@code.star-lock.cn:xhj/starcloud-sdk-uniapp.git master`
|
||||||
### 2. 需安装的npm包
|
### 2. 需安装的npm包
|
||||||
`npm install buffer crc js-md5 pinia sm-crypto`
|
`npm install buffer crc js-md5 pinia sm-crypto`
|
||||||
|
|
||||||
|
pinia是全局状态管理工具,需在main.js中引入
|
||||||
|
```javascript
|
||||||
|
import * as Pinia from 'pinia'
|
||||||
|
const store = Pinia.createPinia()
|
||||||
|
app.use(store)
|
||||||
|
```
|
||||||
### 3. 使用
|
### 3. 使用
|
||||||
```javascript
|
```javascript
|
||||||
import { useStarCloudStore } from '@/starCloud/starCloud'
|
import { useStarCloudStore } from '@/starCloud/starCloud'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user