|
@@ -86,6 +86,7 @@
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
if(option?.type){
|
|
|
+ this.type = option?.type;
|
|
|
if(option.type==1) this.backUrl = '/pages/home'
|
|
|
else if(option.type==2) this.backUrl = '/pages/role'
|
|
|
}
|
|
@@ -204,7 +205,7 @@
|
|
|
if(res.data.code!==0) return this.$showToast(res.data.msg)
|
|
|
this.$showToast(this.agentId?'编辑成功':'创建成功');
|
|
|
setTimeout(()=>{
|
|
|
- uni.reLaunch({ url:'/pages/role' })
|
|
|
+ uni.reLaunch({ url:this.type==1?'/pages/home':'/pages/role' })
|
|
|
},1500)
|
|
|
})
|
|
|
},
|