提交 85cf9751 authored 作者: lihuihui's avatar lihuihui

修改收藏列表跳转

上级 82a242d3
......@@ -119,22 +119,17 @@ export default {
}
},
listClick(id, index) {
this.batchDel.selectShow ? this.selectOpt(id) : this.goDetail(id, index)
// this.$router.push({
// path: '/my/questionsDetails',
// query: {
// id: id,
// isError: this.params.is_error
// }
// })
},
goDetail(id) {
// this.$router.push({
// path: '/my/questionsDetails',
// query: {
// id: id,
// }
// })
const pageCount = (index / 50).toString()
let num = 1
pageCount.indexOf('.') === -1 ? num = pageCount : num = parseInt(pageCount) + 1
this.$router.push({
path: '/my/questionsDetails',
query: {
id: id,
page: parseInt(num) === 0 ? 1 : num,
type: 2
}
})
},
selectOpt(id) {
const isArr = this.batchDel.countData.findIndex(item => { return item === id })
......
......@@ -194,7 +194,7 @@ export default {
}
this.batchDel.isDelBtn = false
Toast('删除成功')
this.initData(true)
this.question.list.length ? this.initData(true) : this.initData()
}
})
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论