Commit 83b63ab81957125a8e61737918841209ca28411f

Authored by ww
1 parent 153e8bf7

fix: 修复产品名称存在字母符号时无法通过设备列表跳转查询

@@ -369,7 +369,7 @@ @@ -369,7 +369,7 @@
369 handleSuccess(); 369 handleSuccess();
370 } 370 }
371 function goDeviceProfile(e) { 371 function goDeviceProfile(e) {
372 - go(PageEnum.DEVICE_PROFILE + '?name=' + String(e)); 372 + go(PageEnum.DEVICE_PROFILE + '?name=' + encodeURIComponent(String(e)));
373 } 373 }
374 const { copied, copy } = useClipboard({ legacy: true }); 374 const { copied, copy } = useClipboard({ legacy: true });
375 const copySN = async (snCode: string) => { 375 const copySN = async (snCode: string) => {
@@ -175,6 +175,9 @@ @@ -175,6 +175,9 @@
175 175
176 const { query: routeParams } = useRoute(); 176 const { query: routeParams } = useRoute();
177 onMounted(() => { 177 onMounted(() => {
  178 + routeParams.name = decodeURIComponent(
  179 + ((routeParams as unknown as Recordable) || {})?.name || ''
  180 + );
178 getDataSource(routeParams); 181 getDataSource(routeParams);
179 }); 182 });
180 </script> 183 </script>