mirror of
https://github.com/xhongc/music-tag-web.git
synced 2026-04-25 03:00:54 +08:00
feature:回退bug
This commit is contained in:
2
static/dist/index.prod.html
vendored
2
static/dist/index.prod.html
vendored
@@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>音乐标签Web版|Music Tag Web|</title><link rel="shortcut icon" href=/static/dist/img/music-tag.png type=image/x-icon><link href=./static/dist/css/app.css rel=stylesheet></head><body><script>window.siteUrl = "/"
|
||||
window.APP_CODE = 'dj-flow';
|
||||
window.CSRF_COOKIE_NAME = 'django_vue_cli_csrftoken'</script><div id=app></div><script type=text/javascript src=./static/dist/js/manifest.9ba6c0d4f4490e9a4f28.js></script><script type=text/javascript src=./static/dist/js/vendor.051dd49be048f27f51f9.js></script><script type=text/javascript src=./static/dist/js/app.6e9b7e04ef4507830e05.js></script></body></html>
|
||||
window.CSRF_COOKIE_NAME = 'django_vue_cli_csrftoken'</script><div id=app></div><script type=text/javascript src=./static/dist/js/manifest.9ba6c0d4f4490e9a4f28.js></script><script type=text/javascript src=./static/dist/js/vendor.051dd49be048f27f51f9.js></script><script type=text/javascript src=./static/dist/js/app.df978cddaa57f15f8d01.js></script></body></html>
|
||||
1
static/dist/js/app.6e9b7e04ef4507830e05.js
vendored
1
static/dist/js/app.6e9b7e04ef4507830e05.js
vendored
File diff suppressed because one or more lines are too long
1
static/dist/js/app.df978cddaa57f15f8d01.js
vendored
Normal file
1
static/dist/js/app.df978cddaa57f15f8d01.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -340,7 +340,6 @@
|
||||
treeListOne: [],
|
||||
filePath: '/app/media/',
|
||||
fullPath: '',
|
||||
bakDir: '/app/media/',
|
||||
fileName: '',
|
||||
resource: 'netease',
|
||||
resourceList: [
|
||||
@@ -413,12 +412,28 @@
|
||||
</span>
|
||||
},
|
||||
backDir() {
|
||||
this.filePath = this.bakDir
|
||||
this.filePath = this.backPath(this.filePath)
|
||||
this.handleSearchFile()
|
||||
},
|
||||
backPath(path) {
|
||||
// 使用正则表达式匹配最后一个斜杠及其后面的内容
|
||||
const regex = /\/([^\/]+)\/?$/
|
||||
const match = regex.exec(path)
|
||||
|
||||
// 如果匹配到了最后一个斜杠及其后面的内容
|
||||
if (match) {
|
||||
// 截取掉最后一个斜杠及其后面的内容
|
||||
const parentPath = path.slice(0, match.index)
|
||||
|
||||
// 返回回退后的路径
|
||||
return parentPath
|
||||
}
|
||||
|
||||
// 如果没有匹配到最后一个斜杠及其后面的内容,则返回原始路径
|
||||
return path
|
||||
},
|
||||
nodeClickOne(node) {
|
||||
if (node.icon === 'icon-folder') {
|
||||
this.bakDir = this.filePath
|
||||
this.filePath = this.filePath + '/' + node.name
|
||||
this.handleSearchFile()
|
||||
} else {
|
||||
@@ -515,7 +530,11 @@
|
||||
return
|
||||
}
|
||||
this.fadeShowDetail = false
|
||||
this.$api.Task.fetchId3Title({title: this.musicInfo.title, resource: this.resource, full_path: this.fullPath}).then((res) => {
|
||||
this.$api.Task.fetchId3Title({
|
||||
title: this.musicInfo.title,
|
||||
resource: this.resource,
|
||||
full_path: this.fullPath
|
||||
}).then((res) => {
|
||||
this.fadeShowDetail = true
|
||||
this.SongList = res.data
|
||||
})
|
||||
@@ -785,18 +804,23 @@ button.bk-button-text {
|
||||
.bk-icon.icon-arrows-right-circle {
|
||||
color: rgb(17, 64, 108) !important;
|
||||
}
|
||||
|
||||
.bk-icon.icon-arrows-right-shape {
|
||||
color: rgb(17, 64, 108) !important;
|
||||
}
|
||||
|
||||
.bk-icon.icon-arrows-right-shape:hover {
|
||||
color: #df4d40 !important;
|
||||
}
|
||||
|
||||
.bk-icon.icon-arrows-left-shape:hover {
|
||||
color: #df4d40 !important;
|
||||
}
|
||||
|
||||
.bk-icon.icon-arrows-down-shape:hover {
|
||||
color: #df4d40 !important;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 0;
|
||||
background-color: transparent;
|
||||
|
||||
Reference in New Issue
Block a user