Update vueapp.js
This commit is contained in:
parent
07f2b3f1a3
commit
4f93124416
1 changed files with 46 additions and 44 deletions
|
@ -1255,12 +1255,12 @@ const app = new Vue({
|
|||
})
|
||||
},
|
||||
copyToClipboard(str) {
|
||||
if (navigator.userAgent.includes('Darwin') || navigator.appVersion.indexOf("Mac") != -1) {
|
||||
this.darwinShare(str)
|
||||
} else {
|
||||
// if (navigator.userAgent.includes('Darwin') || navigator.appVersion.indexOf("Mac") != -1) {
|
||||
// this.darwinShare(str)
|
||||
// } else {
|
||||
notyf.success(app.getLz('term.share.success'))
|
||||
navigator.clipboard.writeText(str).then(r => console.log("Copied to clipboard."))
|
||||
}
|
||||
// }
|
||||
},
|
||||
newPlaylist(name = app.getLz('term.newPlaylist'), tracks = []) {
|
||||
let self = this
|
||||
|
@ -2936,7 +2936,8 @@ const app = new Vue({
|
|||
endTime: end,
|
||||
line: xline[2],
|
||||
translation: ''
|
||||
})}
|
||||
})
|
||||
}
|
||||
}
|
||||
if (preLrc.length > 0)
|
||||
preLrc.push({
|
||||
|
@ -3008,7 +3009,8 @@ const app = new Vue({
|
|||
endTime: end,
|
||||
line: xline[2],
|
||||
translation: ''
|
||||
})}
|
||||
})
|
||||
}
|
||||
}
|
||||
if (preLrc.length > 0)
|
||||
preLrc.push({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue