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

修改收藏列表跳转

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