diff --git a/.env.development.yh b/.env.development.yh
index 95d4857d..193ce295 100644
--- a/.env.development.yh
+++ b/.env.development.yh
@@ -4,8 +4,8 @@ ENV = 'development.yh'
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
-# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786'
-VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786'
+VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786'
+# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786'
# VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.32.154:9604'
# VITE_APP_BASE_H5_API_Url_TRAPRACTICE = 'http://25.64.32.156:9603'
diff --git a/src/pages/sparring/components/talking-item.vue b/src/pages/sparring/components/talking-item.vue
index a5f307cd..5e6b43ba 100644
--- a/src/pages/sparring/components/talking-item.vue
+++ b/src/pages/sparring/components/talking-item.vue
@@ -18,10 +18,12 @@
回答提示
+
{{tipsContent}}
+
@@ -92,6 +94,7 @@
const loadingTips = ref(false)
const tipsContent = ref('')
+ const showContent = ref(false)
const handleEvents = (type, info = {}) => {
emit('handleEvents', {
type,
@@ -101,24 +104,28 @@
})
}
const getTips = () => {
- if(tipsContent.value){
- tipsContent.value = ''
+ if(showContent.value){
+ showContent.value = false
return
}
- loadingTips.value = true
+ showContent.value = true
handleEvents('scrollToBottom')
- partnerChatPrompt({
- execId: props.execId,
- traId: props.traId,
- content: props.talkingInfo.talkingText,
- chaId: roleInfo.value?.chaId
- }).then(res=>{
- tipsContent.value = res.body
- loadingTips.value = false
+ if(!tipsContent.value){
+ loadingTips.value = true
handleEvents('scrollToBottom')
- }).catch(()=> {
- loadingTips.value =false
- })
+ partnerChatPrompt({
+ execId: props.execId,
+ traId: props.traId,
+ content: props.talkingInfo.talkingText,
+ chaId: roleInfo.value?.chaId
+ }).then(res=>{
+ tipsContent.value = res.body
+ loadingTips.value = false
+ handleEvents('scrollToBottom')
+ }).catch(()=> {
+ loadingTips.value =false
+ })
+ }
}
const changePlay = (id) => {
emit('handleEvents', {