更新脚手架!

This commit is contained in:
Andy Leong
2023-12-29 18:41:59 +08:00
parent f1c3d10fd5
commit c0871a9b1f
29 changed files with 1004 additions and 149 deletions

15
src/store/index.js Normal file
View File

@@ -0,0 +1,15 @@
// pinia仓库
import { defineStore } from "pinia"
export const useMainStore = defineStore("counter", {
state: () => {
return {
name: '超级管理员'
}
},
// 相当于computed属性对state进行二次加工
getters: {},
// 异步处理方法
actions: {},
})