feat: 首页改版
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useComponentStore = defineStore('component', {
|
||||
//用来存放变量
|
||||
state: () => ({
|
||||
leftCom: false,
|
||||
leftComDrawer: false,
|
||||
}),
|
||||
//方法
|
||||
actions: {
|
||||
//设置左侧组件状态
|
||||
setLeftComStatus(status: boolean) {
|
||||
console.log(1)
|
||||
this.leftCom = status
|
||||
},
|
||||
//设置左侧组件状态(小屏)
|
||||
setleftComDrawerStatus(status: boolean) {
|
||||
console.log(2)
|
||||
this.leftComDrawer = status
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user