lint code

This commit is contained in:
lyswhut
2023-08-30 14:30:47 +08:00
parent 358142c1cc
commit 2fff8652ca
48 changed files with 123 additions and 106 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ export default {
}, () => {
cancelScroll = null
isScrolling = false
reject('canceled')
reject(new Error('canceled'))
})
} else {
dom_scrollContainer.value.scrollTop = scrollTop
@@ -141,14 +141,14 @@
// }
// const scrollTo = async(scrollTop, animate = false) => {
// return await new Promise(resolve => {
// return new Promise(resolve => {
// if (cancelScroll) {
// cancelScroll(resolve)
// } else {
// resolve()
// }
// }).then(async() => {
// return await new Promise((resolve, reject) => {
// return new Promise((resolve, reject) => {
// if (animate) {
// isScrolling = true
// scrollToValue = scrollTop
@@ -169,7 +169,7 @@
// }
// const scrollToIndex = async(index, offset = 0, animate = false) => {
// return await scrollTo(Math.max(index * props.itemHeight + offset, 0), animate)
// return scrollTo(Math.max(index * props.itemHeight + offset, 0), animate)
// }
// const getScrollTop = () => {
@@ -52,7 +52,7 @@ export default {
return
}
const { temp_source } = await getSearchSetting()
prevTempSearchSource = temp_source
prevTempSearchSource ||= temp_source
music[prevTempSearchSource].tipSearch.search(searchText.value).then(list => {
tipList.value = list
}).catch(() => {})