Commit 4fd1cc00d4a5bf3182028c67af807ec453e8cb7e
Merge branch 'ft' into 'main_dev'
fix: 修复设备详情里面的产品点击跳转特殊字符未转义问题 See merge request yunteng/thingskit-front!802
Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -43,7 +43,9 @@ export const descSchema = (emit: EmitType): DescItem[] => { | @@ -43,7 +43,9 @@ export const descSchema = (emit: EmitType): DescItem[] => { | ||
| 43 | type: 'link', | 43 | type: 'link', |
| 44 | style: { padding: 0 }, | 44 | style: { padding: 0 }, |
| 45 | onClick: () => | 45 | onClick: () => |
| 46 | - !isCustomer ? go(PageEnum.DEVICE_PROFILE + '?name=' + String(val)) : '', | 46 | + !isCustomer |
| 47 | + ? go(PageEnum.DEVICE_PROFILE + '?name=' + encodeURIComponent(String(val))) | ||
| 48 | + : '', | ||
| 47 | }, | 49 | }, |
| 48 | { default: () => val } | 50 | { default: () => val } |
| 49 | ); | 51 | ); |