diff --git a/src/views/Home/components/CreateSurvey/components/IntelligentGeneration/Index.vue b/src/views/Home/components/CreateSurvey/components/IntelligentGeneration/Index.vue index 25eed02..3c42071 100644 --- a/src/views/Home/components/CreateSurvey/components/IntelligentGeneration/Index.vue +++ b/src/views/Home/components/CreateSurvey/components/IntelligentGeneration/Index.vue @@ -2,15 +2,15 @@ import { escapeHTML } from '@/utils/stringTranslate'; const host = `https://yiligpt.x.digitalyili.com`; -const path = '/aiagent/assistant/78907182-cc42-4072-abae-86ef67c1ecd3/share'; -const param = `?token=${localStorage.getItem('plantToken')}&source=app`; +const path = '/aiagent/assistant/78907182-cc42-4072-abae-86ef67c1ecd3/share?'; +const param = `token=${encodeURIComponent(localStorage.getItem('plantToken') as string)}&source=app`; const url = host + path + param; // 字符串转义