提交 125432d7 编写于 作者: chendeli's avatar chendeli

完成返回参数

上级 11dca317
......@@ -1143,7 +1143,11 @@ export default {
vm.GET('portal/portalComponent/disableOrStart',req).then((res) => {
if(res.code == "000000") {
if(flag == 2) {
vm.$router.push({ path: 'item-component',query: {pageNum:this.$route.query.pageNum} })
let query = {}
if(this.$route.query.pageNum){
query = {pageNum:this.$route.query.pageNum}
}
vm.$router.push({ path: 'item-component',query:query })
} else {
vm.$message.info("暂存成功!")
}
......
......@@ -1776,7 +1776,12 @@ export default {
if (res.code == "000000") {
//notify
if (type == 2) {
this.$router.push("item-manager?pageNum="+this.$route.query.pageNum);
let query = {}
if(this.$route.query.pageNum){
query = {pageNum:this.$route.query.pageNum}
}
this.$router.push({ path: 'item-manager',query:query })
// this.$router.push("item-manager?pageNum="+this.$route.query.pageNum);
}
}
});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册