优化跨页面传参,传递更完整的设备相关信息而非仅purId,同时修复传参结构不匹配问题
@@ -2,8 +2,8 @@
"name" : "云飞智控",
"appid" : "__UNI__DBA6730",
"description" : "",
- "versionName" : "1.15.13",
- "versionCode" : 11513,
+ "versionName" : "1.15.14",
+ "versionCode" : 11514,
"transformPx" : false,
"sassImplementationName" : "node-sass",
/* 5+App特有相关 */
@@ -657,8 +657,10 @@
},
onLoad() {
const that = this;
- uni.$on('purId', (purId) => {
- that.pur_id = purId;
+ uni.$on('purId', (item) => {
+ that.pur_id = item.purId;
+ that.menu = item.menu;
+ that.device_model = item.device_model;
});
uni.$on('refreshData', (refreshData) => {
this.eqlist();
@@ -141,7 +141,7 @@ export default {
url: '/pages/equipList2/index',
success: () => {
setTimeout(() => {
- uni.$emit('purId',purId);
+ uni.$emit('purId',{purId,menu:item.children[0]?.menu || '',device_model:item.children[0]?.device_model || ''});
}, 50);
}
})