123
This commit is contained in:
@@ -177,13 +177,6 @@ provide("toggleDrawerMenu", () => {
|
||||
//~~~~ 搜索绑定与搜索按钮点击
|
||||
const searchKey = ref("")
|
||||
const handleSearchTreeDataClick = () => {
|
||||
if (!treeDataStore.originTreeData) {
|
||||
return
|
||||
}
|
||||
if (searchKey.value.match(/^[ ]*$/)) {
|
||||
treeData.value = treeDataStore.originTreeData
|
||||
return
|
||||
}
|
||||
const loop = (itemdata) => {
|
||||
const result = []
|
||||
itemdata.forEach((item) => {
|
||||
|
||||
@@ -16,6 +16,7 @@ const useTreeDataStore = defineStore("treeDataStore", {
|
||||
// 获取localStorage的treeData数据
|
||||
if (localStorage.getItem("tree_local_data")) {
|
||||
this.treeData = JSON.parse(localStorage.getItem("tree_local_data"))
|
||||
this.originTreeData = JSON.parse(localStorage.getItem("tree_local_data"))
|
||||
}
|
||||
if (this.treeData.length === 0) {
|
||||
const roundData = await projectApi.getRoundInfo(projectId)
|
||||
|
||||
Reference in New Issue
Block a user