htc 2 gün önce
ebeveyn
işleme
aecb972132
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      pagesRole/addRole.vue

+ 2 - 1
pagesRole/addRole.vue

@@ -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)
 				})
 			},