2026-02-14 18:59:36 +08:00

22 lines
486 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# counter.ts (Store)
**路径**`src/stores/counter.ts`
## 功能用途
示例 Pinia Store用于演示 setup 写法:`count``doubleCount``increment`。项目中可能仅用于测试或示例,业务可忽略。
## 使用方式
```typescript
import { useCounterStore } from '@/stores/counter'
const counter = useCounterStore()
counter.increment()
console.log(counter.doubleCount)
```
## 扩展方式
可删除或改为业务相关 demo如示例数据 store