公告板
版本库
filestore
活动
搜索
登录
肖辉
/
daoAnOffice
都江堰大屏
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
Initial commit
daidaibg
2022-10-10
a44105de2e57b676280f175237e3f2e2c017db6a
[~xiaohui/daoAnOffice.git]
/
src
/
store
/
counter.ts
1
2
3
4
5
6
7
8
9
10
import { defineStore } from "pinia";
export const counter = defineStore("counter", () => {
const count = ref<number>(1);
function increment() {
count.value++;
}
return { count, increment };
});