diff --git a/src/workbench/browser/src/app/shared/components/params-import/params-import.component.ts b/src/workbench/browser/src/app/shared/components/params-import/params-import.component.ts index a5dbf1755..3d9b4621c 100644 --- a/src/workbench/browser/src/app/shared/components/params-import/params-import.component.ts +++ b/src/workbench/browser/src/app/shared/components/params-import/params-import.component.ts @@ -80,7 +80,7 @@ export class ParamsImportComponent { } } if (this.contentType === 'query') { - paramCode = qs.parse(this.paramCode.split('?')[1]); + paramCode = qs.parse(this.paramCode.indexOf('?') > -1 ? this.paramCode.split('?')[1] : this.paramCode); // console.log('-->', paramCode); } if (this.contentType === 'formData') {