更新脚手架!
This commit is contained in:
15
src/store/index.js
Normal file
15
src/store/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// pinia仓库
|
||||
import { defineStore } from "pinia"
|
||||
|
||||
|
||||
export const useMainStore = defineStore("counter", {
|
||||
state: () => {
|
||||
return {
|
||||
name: '超级管理员'
|
||||
}
|
||||
},
|
||||
// 相当于computed属性,对state进行二次加工
|
||||
getters: {},
|
||||
// 异步处理方法
|
||||
actions: {},
|
||||
})
|
||||
Reference in New Issue
Block a user