Skip to content

Commit

Permalink
fix: 修复文件夹为空时文件列表报错的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
anguoo committed Feb 1, 2024
1 parent c064077 commit 37a7df1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/views/personal/personal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ onMounted(() => {
onUpdated(() => {
setTimeout(() => {
if (filesList.value.length === 0) return
const pathArry = filesList.value[0].path.split('/')
pathArry.pop()
nowPath.value = pathArry[pathArry.length - 1]
Expand Down Expand Up @@ -723,6 +724,13 @@ const clickMusic = () => {
margin: 0 5px;
}
}
.path-item:hover {
color: #789bbc;
div {
color: #b7b6b6;
}
}
.nowPath {
font-weight: 550;
Expand Down

0 comments on commit 37a7df1

Please sign in to comment.