测试升级为vue3

This commit is contained in:
暮光:城中城
2023-01-07 00:34:05 +08:00
parent e45b63077a
commit 78044ce920
53 changed files with 33535 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
import { defineStore } from 'pinia'
export const useStorePageData = defineStore('pageData', {
state: () => {
return {
pageLoadStatus: 0,
}
},
})
/**
import { useStore } from '../../../store/wikiDisplay.js'
let store = useStore();
订阅变化:
store.$subscribe((mutation, state) => {
if (mutation.events.key === 'xxx') {
}
});
修改:
const commentChange = () => {
store.commentShow = !store.commentShow;
}
计算属性:
let commentShow = computed(() => store.commentShow);
*/