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 | 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> | ... | ... |