-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57a7831
commit df476dc
Showing
4 changed files
with
56 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!-- | ||
@Description: Workspace Component | ||
@Author: Chris | ||
@Date: 2024/7/24 | ||
--> | ||
<script lang="ts" setup> | ||
import {useWorkspaceStore} from "@/store/workspace.ts"; | ||
import {storeToRefs} from "pinia"; | ||
import {onMounted} from "vue"; | ||
|
||
// TODO 上传 下载 删除 | ||
const workspaceStore = useWorkspaceStore(); | ||
let treeData = storeToRefs(workspaceStore).treeData; | ||
|
||
const treeProps = { | ||
label: "name", | ||
} | ||
|
||
async function update() { | ||
await workspaceStore.updateData(); | ||
} | ||
|
||
onMounted(() => { | ||
update(); | ||
}); | ||
</script> | ||
|
||
<template> | ||
<el-tree | ||
:data="treeData" | ||
:props="treeProps" | ||
/> | ||
</template> | ||
|
||
<style lang="less" scoped> | ||
|
||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters