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