XSLu08042 hace 1 mes
padre
commit
776f539389
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      pages_user/bindCompanyUser.vue

+ 5 - 1
pages_user/bindCompanyUser.vue

@@ -19,7 +19,11 @@
 			}
 		},
 		onLoad(option) {
-			this.companyUserId = option.companyUserId
+			let q = {}
+			if(option.q) {
+				q = decodeURIComponent(option.q) // 获取到二维码原始链接内容
+			}
+			this.companyUserId = q.companyUserId || option.companyUserId
 		},
 		methods: {
 			handleBind() {