增加新布局

This commit is contained in:
2025-10-29 17:32:34 +08:00
parent 74df0e539c
commit b9938b4c0d
2866 changed files with 11551 additions and 115 deletions
+24
View File
@@ -0,0 +1,24 @@
import { defineStore } from 'pinia'
import { ref, computed, reactive } from 'vue'
// 初始化state数据
function initState() {
return {
isCollapse: false,
};
}
export const useAllDataStore = defineStore('allData', () => {
const state = reactive(initState());
const count = ref(0);
const doubleCount = computed(() => count.value * 2);
function increment() {
count.value++;
}
return {
state,
count,
doubleCount,
increment
}
})