refactor(CreateSurvey): 更新智能生成组件的 API 地址
- 移除旧的 API 地址和测试地址 - 添加新的智能生成 API 地址 - 简化代码结构,提高可读性
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from 'vue';
|
||||
|
||||
const host = window.location.host;
|
||||
const path = '/api/ai/ai_create?';
|
||||
const host = `https://yiligpt.x.digitalyili.com`;
|
||||
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;
|
||||
const url = host + path + param;
|
||||
// const url = 'https://yls-api-uat.dctest.digitalyili.com' + path + param;
|
||||
//
|
||||
//
|
||||
//
|
||||
// 'https://yiligpt.x.digitalyili.com/aiagent/assistant/78907182-cc42-4072-abae-86ef67c1ecd3/share?token=${encodeURIComponent(token)}&source=app'
|
||||
|
||||
const iframe = ref<HTMLIFrameElement | null>(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user