diff --git a/.env.development b/.env.development
index dcc1217a..9b307d68 100644
--- a/.env.development
+++ b/.env.development
@@ -2,7 +2,10 @@
ENV = 'development'
# 'development'
-VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
+VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
+# VITE_APP_BASE_API_Url = ' http://25.18.122.66:9786'
+#sit
+# VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786'
# UAT
# VITE_APP_BASE_API_Url = 'http://25.18.122.78:9786'
@@ -12,8 +15,8 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
# VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001'
-# VITE_APP_BASE_API_Url = 'http://25.16.122.92:9786'
-# VITE_APP_BASE_API_Url = 'http://25.18.122.66:9786'
+# VITE_APP_BASE_API_Url = 'http://25.16.122.91:9786'
+#VITE_APP_BASE_API_Url = 'http://25.18.122.66:9786'
# h5专用地址x2
diff --git a/.env.production b/.env.production
index 143ff549..6cbcc735 100644
--- a/.env.production
+++ b/.env.production
@@ -2,4 +2,4 @@
ENV = 'production'
# base api
-VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001'
\ No newline at end of file
+VITE_APP_BASE_API_Url = 'http://localhost:7000'
\ No newline at end of file
diff --git a/src/api/request.js b/src/api/request.js
index df5aceb1..519dfdf0 100644
--- a/src/api/request.js
+++ b/src/api/request.js
@@ -6,6 +6,7 @@ import common from '@/common/common.js'
const ENV = import.meta.env
export const get_base_url = (url = '') => {
+
if (ENV.MODE === 'development') { // 开发环境
// #ifdef H5
if (url) {
@@ -20,7 +21,9 @@ export const get_base_url = (url = '') => {
return ENV.VITE_APP_BASE_API_Url
// #endif
} else { // 其他环境,包括生产环境,sit环境,uat环境
+
return ENV.VITE_APP_BASE_API_Url
+ // return ENV.VITE_APP_BASE_API_Url
}
}
diff --git a/src/components/examination/question.vue b/src/components/examination/question.vue
index 14332801..4ae9c17d 100644
--- a/src/components/examination/question.vue
+++ b/src/components/examination/question.vue
@@ -176,12 +176,12 @@
};
const playVoice = () => {
- // isPlaying.value = true;
console.log('点击播放');
innerAudio.playAudio();
};
let unsubscribe = () => {};
onMounted(() => {
+ console.log('question的onMounted');
// 2. 监听 Store 中 isPlaying 的变化,实时同步
// unsubscribe = innerAudio.$subscribe((mutation, state) => {
// isPlaying.value = state.isPlaying;
@@ -214,6 +214,7 @@
console.log('去下载oss内容333', props.dataInfo);
if (newVal === '' && props.dataInfo.ossKey) {
// 去下载oss内容
+ console.log('真下载oss内容');
downloadFile(props.dataInfo.ossKey).then((res) => {
voiceTime.value = '';
innerAudio.setAudioSrc(res.tempFilePath);
diff --git a/src/components/examination/touchBtn.vue b/src/components/examination/touchBtn.vue
index 613c08ff..b96eaa55 100644
--- a/src/components/examination/touchBtn.vue
+++ b/src/components/examination/touchBtn.vue
@@ -73,7 +73,7 @@