将wiki升级为vue3版本
This commit is contained in:
@@ -1,32 +1,10 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import {defineStore} from 'pinia'
|
||||
|
||||
export const useStorePageData = defineStore('pageData', {
|
||||
state: () => {
|
||||
return {
|
||||
pageLoadStatus: 0,
|
||||
}
|
||||
},
|
||||
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);
|
||||
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user