lint code

This commit is contained in:
lyswhut
2023-08-27 15:09:07 +08:00
parent 0d76c9ccb4
commit 71b84fb10d
69 changed files with 346 additions and 413 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ export default {
// }
this.setRandomAnimation()
this.showModal = true
nextTick(() => {
void nextTick(() => {
this.$refs.dom_container.parentNode.classList.add('show-modal')
this.showContent = true
})
@@ -234,7 +234,7 @@ export default {
handleShowDownloadModal(index, true)
break
case 'play':
handlePlayMusic(index, true)
void handlePlayMusic(index, true)
break
case 'search':
handleSearch(index)
@@ -83,6 +83,7 @@ export default {
if (this.maxPage <= this.btnLength) return Array.from({ length: this.maxPage }, (_, i) => i + 1)
let start =
this.page - this.pageEvg > 1
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
? this.maxPage - this.page < this.pageEvg + 1
? this.maxPage - (this.btnLength - 1)
: this.page - this.pageEvg
@@ -141,7 +141,7 @@ export default {
},
handleSearch() {
this.hideList()
if (this.selectIndex < 0) return this.sendEvent('submit')
if (this.selectIndex < 0) { this.sendEvent('submit'); return }
this.sendEvent('listClick', this.selectIndex)
},
showList() {