fix: 修复智能生成问卷 iframe 适配问题

- 更新 iframe src 属性的拼接方式,使用 encodeURIComponent 对 token 进行编码
- 移除 encodeURI 函数的使用,直接使用拼接好的 url
This commit is contained in:
Huangzhe
2025-05-26 14:17:17 +08:00
parent 0a91df64b5
commit f886a51110
2 changed files with 3 additions and 4 deletions

View File

@@ -105,7 +105,6 @@ function clearSurveys() {
async function validateSurvey(survey: SurveyItem): Promise<boolean> {
const { data } = await getQuestionList(survey.sn);
const questions = data.data.questions;
return
return questions.every((question: any) => {
if (!questionTypeMap.has(question.question_type)) {
return false;