Commit 83b63ab81957125a8e61737918841209ca28411f

Authored by ww
1 parent 153e8bf7

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

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