diff --git a/.env.prod b/.env.prod index 2d7fce4..5c06284 100644 --- a/.env.prod +++ b/.env.prod @@ -14,4 +14,5 @@ VITE_APP_YQRURL=https://ocp.digitalyili.com # VITE_APP_BASE_APPURL=https://ycsb-gw-uat.dcin-test.digitalyili.com # VITE_APP_APPKEY=62f495a0f7854e4e46ebbf40 -# VITE_APP_APPID=m5c66hlce3 \ No newline at end of file +# VITE_APP_APPID=m5c66hlce3 +VITE_APP_AIAGENTURL=/aiagent/assistant/1179e9d7-fb94-4fe4-abbb-55be8f8ca5d6/share \ No newline at end of file diff --git a/.env.uat b/.env.uat index 884b858..ae0b3b9 100644 --- a/.env.uat +++ b/.env.uat @@ -31,3 +31,4 @@ VUE_APP_JSONPURL = 'https://iam-uat.dctest.digitalyili.com/idp/restful/getIDPTok VUE_APP_YQRURL = 'https://ocp-uat-ain.digitalyili.com' +VITE_APP_AIAGENTURL=/aiagent/assistant/78907182-cc42-4072-abae-86ef67c1ecd3/share \ No newline at end of file diff --git a/src/views/Home/components/CreateSurvey/components/IntelligentGeneration/Index.vue b/src/views/Home/components/CreateSurvey/components/IntelligentGeneration/Index.vue index 23b9270..12596a9 100644 --- a/src/views/Home/components/CreateSurvey/components/IntelligentGeneration/Index.vue +++ b/src/views/Home/components/CreateSurvey/components/IntelligentGeneration/Index.vue @@ -3,7 +3,7 @@ import { onMounted, ref } from 'vue'; import { useRouter } from 'vue-router'; const host = window.location.origin; -const path = '/aiagent/assistant/78907182-cc42-4072-abae-86ef67c1ecd3/share?'; +const path = import.meta.env.VITE_APP_AIAGENTURL + '?'; const param = `token=${encodeURIComponent(localStorage.getItem('plantToken') as string)}&source=app`; const url = host + path + param; const iframe = ref(null);