初始化绑定页面组件,并写入scheme到pinia
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user