const params = { customerVisitNum: { followupType: 3 }, technicalExchangeNum: { followupType: 1 }, liveDemonstrationNum: { followupType: 2 }, workPlanDay: { activeTabKey }, workPlanWeekly: { activeTabKey }, curCustomerNum: { employeeViewMy }, currentCustomerLink: { timeType, employeeViewMy }, };

const param = params[key]; if (param) { const urlParams = Object.entries(param).map(([key, value]) => ${key}=${value}).join('&'); url && uni.navigateTo({ url: ${url}?${urlParams} }); }

优化一下这段js代码: ifkey === customerVisitNum 客户拜访			url && uninavigateTo				url$urlfollowupType=3&timeType=$timeType&employeeViewMy=$employeeViewMy 					 else ifkey === technicalExchangeNum 技术交流			url && un

原文地址: https://www.cveoy.top/t/topic/Xvh 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录