初始化绑定页面组件,并写入scheme到pinia

This commit is contained in:
lhj
2024-10-03 17:43:17 +08:00
parent 9fbbc8a2a7
commit a4f2f020fc
4 changed files with 45 additions and 12 deletions

View File

@ -2,7 +2,7 @@ import { defineStore } from 'pinia'
import { IPageComponent } from '../type/IPageComponent';
import { ref,computed } from 'vue';
export const useCounterStore = defineStore('counter', () => {
export const useSchemeStore = defineStore('counter', () => {
const count = ref(0)
const scheme=ref<IPageComponent>()
const doubleCount = computed(() => count.value * 2)