Эх сурвалжийг харах

fix: 优化用户信息处理逻辑并更新版本号至v1.0.3.1

yusheng 8 сар өмнө
parent
commit
e7af53df88

+ 1 - 0
hybrid/html/a.html

@@ -213,6 +213,7 @@
 					getQueryParams(queryName) {
 						const urlSearchParams = new URLSearchParams(window.location.search);
 						const query = urlSearchParams.get(queryName);
+						console.log(query,'query')
 						return JSON.parse(query);
 					},
 					generateFormValid(validate = true) {

+ 1 - 1
manifest.json

@@ -2,7 +2,7 @@
     "name" : "智慧工厂",
     "appid" : "__UNI__45B3907",
     "description" : "",
-    "versionName" : "v1.0.2.9",
+    "versionName" : "v1.0.3.1",
     "versionCode" : "100",
     "transformPx" : false,
     "h5" : {

+ 7 - 3
pages/home/wt/components/formParser/routerView.vue

@@ -34,8 +34,12 @@
 				serverInfo : Vue.prototype.apiUrl||'',
 			  };
 			  //http://192.168.1.105:18086
-			  const params =  JSON.parse(option.params)
-			  params.userInfo = uni.getStorageSync("userInfo")
+			  let params =  JSON.parse(option.params)
+			  let userInfo = uni.getStorageSync("userInfo")
+			  params.userInfo={
+				  userId:userInfo.userId,
+				  groupId:userInfo.groupId
+			  }
 			  let html = params.type =='add'? 'a.html':'c.html'
 			  this.title= params.type =='add'? '申请':'审批'
 			  try{
@@ -43,7 +47,7 @@
 			  }catch{
 				  params.userInfo.groupIdList = []
 			  }
-			   console.log(params.userInfo.groupIdList)
+			   console.log(params)
 		  setTimeout(()=>{
 			  this.webViewUrl = `/hybrid/html/${html}?params=${JSON.stringify(params)}&headers=${JSON.stringify(headers)}`
 			  this.isShow = true