feat: 首页改版

This commit is contained in:
osiris
2024-02-19 11:19:26 +08:00
parent ef62d26a14
commit 81146ad040
42 changed files with 979 additions and 284 deletions
+22
View File
@@ -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
}
}
})
+1
View File
@@ -12,6 +12,7 @@ export const useToolsStore = defineStore('tools', {
cates: [] as ToolCate[],
recommends: [] as ToolsInfo[],
ipData: {} as IpInfo,
collect: [],
}),
//方法
actions: {