/*
 * @Author: cclu 1106109051@qq.com
 * @Date: 2024-11-18 11:50:33
 * @LastEditors: cclu 1106109051@qq.com
 * @LastEditTime: 2024-11-18 11:51:03
 * @FilePath: \aiRobot\src\stores\counter.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineStore } from 'pinia';

export const useCounterStore = defineStore('counter', {
    state: () => ({
        count: 0,
    }),
    actions: {
        increment() {
            this.count++;
        },
    },
});