优化页面

This commit is contained in:
pengxiaolong
2025-05-28 22:12:30 +08:00
parent e682754922
commit c747f9625c
23 changed files with 1093 additions and 207 deletions

17
stores/counter.js Normal file
View File

@@ -0,0 +1,17 @@
import { defineStore } from 'pinia';
export const useCounterStore = defineStore('counter', {
state: () => {
return {
myitem:{},
youritem:{},
};
},
// 也可以这样定义
// state: () => ({ count: 0 })
actions: {
increment() {
this.count++;
},
},
});