修复评论列表显示问题
parent
09a5111e36
commit
081d6dc91e
|
@ -134,6 +134,10 @@ export default {
|
||||||
setWidth() {
|
setWidth() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$refs.dom_container.style.width = Math.floor(this.$refs.dom_container.parentNode.clientWidth * 0.5) + 'px'
|
this.$refs.dom_container.style.width = Math.floor(this.$refs.dom_container.parentNode.clientWidth * 0.5) + 'px'
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.handleToggleTab(this.tabActiveId, true)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async getComment(musicInfo, page, limit, retryNum = 0) {
|
async getComment(musicInfo, page, limit, retryNum = 0) {
|
||||||
|
@ -221,8 +225,8 @@ export default {
|
||||||
this.newComment.nextPage = page
|
this.newComment.nextPage = page
|
||||||
this.handleGetNewComment(this.currentMusicInfo, page, this.newComment.limit)
|
this.handleGetNewComment(this.currentMusicInfo, page, this.newComment.limit)
|
||||||
},
|
},
|
||||||
handleToggleTab(id) {
|
handleToggleTab(id, force) {
|
||||||
if (this.tabActiveId == id) return
|
if (!force && this.tabActiveId == id) return
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case 'hot':
|
case 'hot':
|
||||||
this.$refs.dom_tabMain.scrollLeft = 0
|
this.$refs.dom_tabMain.scrollLeft = 0
|
||||||
|
|
Loading…
Reference in New Issue