修复百度源歌单全部分类无法加载的问题
parent
0b953a1517
commit
9ea9fefe1d
|
@ -183,6 +183,7 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
this.clearUpdateTimeout()
|
||||||
if (this.isProd) {
|
if (this.isProd) {
|
||||||
body.removeEventListener('mouseenter', this.dieableIgnoreMouseEvents)
|
body.removeEventListener('mouseenter', this.dieableIgnoreMouseEvents)
|
||||||
body.removeEventListener('mouseleave', this.enableIgnoreMouseEvents)
|
body.removeEventListener('mouseleave', this.enableIgnoreMouseEvents)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
material-modal(:show="version.showModal" @close="handleClose")
|
material-modal(:show="version.showModal" @close="handleClose")
|
||||||
main(:class="$style.main" v-if="version.newVersion")
|
main(:class="$style.main" v-if="version.newVersion")
|
||||||
h2 {{ version.isError ? isUnknow ? '❓ 版本信息获取失败 ❓' : '🌟发现新版本🌟' : '🚀程序更新🚀'}}
|
h2 {{ version.isError ? (isUnknow ? '❓ 版本信息获取失败 ❓' : '🌟发现新版本🌟') : '🚀程序更新🚀'}}
|
||||||
|
|
||||||
div.scroll(:class="$style.info")
|
div.scroll(:class="$style.info")
|
||||||
div(:class="$style.current")
|
div(:class="$style.current")
|
||||||
|
|
|
@ -89,7 +89,7 @@ export default {
|
||||||
},
|
},
|
||||||
getListUrl(sortType, tagName, page) {
|
getListUrl(sortType, tagName, page) {
|
||||||
return this.createUrl({
|
return this.createUrl({
|
||||||
channelname: tagName || '默认',
|
channelname: tagName || '全部',
|
||||||
from: 'qianqianmini',
|
from: 'qianqianmini',
|
||||||
offset: (page - 1) * this.limit_list,
|
offset: (page - 1) * this.limit_list,
|
||||||
order_type: sortType,
|
order_type: sortType,
|
||||||
|
@ -144,7 +144,7 @@ export default {
|
||||||
this.getListUrl(sortId, tagId, page)
|
this.getListUrl(sortId, tagId, page)
|
||||||
)
|
)
|
||||||
return this._requestObj_list.promise.then(({ body }) => {
|
return this._requestObj_list.promise.then(({ body }) => {
|
||||||
if (body.error_code !== this.successCode) return this.getList(sortId, tagId, page)
|
// if (body.error_code !== this.successCode) return this.getList(sortId, tagId, page)
|
||||||
return {
|
return {
|
||||||
list: this.filterList(body.diyInfo),
|
list: this.filterList(body.diyInfo),
|
||||||
total: body.nums,
|
total: body.nums,
|
||||||
|
|
Loading…
Reference in New Issue