Commit 5364996cf0fa5d45ca685bc1de3e20f574cefe84
Merge branch 'fix/DEFECT-1470' into 'main_dev'
fix: 修复产品名称存在字母符号时无法通过设备列表跳转查询 See merge request yunteng/thingskit-front!794
Showing
2 changed files
with
4 additions
and
1 deletions
@@ -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> |