diff --git a/.env.development b/.env.development
index 8ef29d20..148c3d27 100644
--- a/.env.development
+++ b/.env.development
@@ -2,7 +2,7 @@
ENV = 'development'
# 'development'
-VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
+VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
# VITE_APP_BASE_API_Url = ' http://25.18.122.66:9786'
#sit
# VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786'
@@ -25,6 +25,6 @@ VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786'
# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
-VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605'
+# VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605'
diff --git a/.env.development_h5 b/.env.development_h5
new file mode 100644
index 00000000..3b50f23b
--- /dev/null
+++ b/.env.development_h5
@@ -0,0 +1,5 @@
+# 开发环境
+ENV = 'development'
+# 'development'
+
+VITE_APP_BASE_API_Url = ''
diff --git a/.env.production b/.env.production
index 6cbcc735..143ff549 100644
--- a/.env.production
+++ b/.env.production
@@ -2,4 +2,4 @@
ENV = 'production'
# base api
-VITE_APP_BASE_API_Url = 'http://localhost:7000'
\ No newline at end of file
+VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001'
\ No newline at end of file
diff --git a/package.json b/package.json
index dbc667a0..cc24343e 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
"build:app-plus:sit": "uni build -p app-plus --mode sit",
"build:app-plus:uat": "uni build -p app-plus --mode uat",
"build:app-plus:prod": "uni build -p app-plus",
+ "build:h5:dev": "uni build -p app-plus --mode development_h5",
"build:h5": "uni build"
},
"dependencies": {
diff --git a/src/api/request.js b/src/api/request.js
index 519dfdf0..1d2ff316 100644
--- a/src/api/request.js
+++ b/src/api/request.js
@@ -6,7 +6,7 @@ import common from '@/common/common.js'
const ENV = import.meta.env
export const get_base_url = (url = '') => {
-
+ return ''
if (ENV.MODE === 'development') { // 开发环境
// #ifdef H5
if (url) {
diff --git a/src/components/examination/es-analysis.vue b/src/components/examination/es-analysis.vue
index 169031ba..0e22662b 100644
--- a/src/components/examination/es-analysis.vue
+++ b/src/components/examination/es-analysis.vue
@@ -12,8 +12,7 @@
{{ item.gradeDimens }}:
{{ item.anlyGrade }}
- 关键词:{{ passKeyword }}
-
+
@@ -50,20 +49,20 @@
if (!props.value.relKeyword) return [];
return props.value.relKeyword.split(/[,、]/).map((key) => key.trim());
});
+
+ const highlightedText = computed(() => {
+ // 如果没有关键词,直接返回原文本
+ if (!keywords.value.length) return '你的答案:' + props.answerText;
+ // 构建正则表达式,匹配所有关键词(不区分大小写)
+ // 对关键词进行转义,避免特殊字符影响正则
+ const escapedKeywords = keywords.value.map((keyword) => keyword.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'));
- // const highlightedText = computed(() => {
- // // 如果没有关键词,直接返回原文本
- // if (!keywords.value.length) return '你的答案:' + props.answerText;
- // // 构建正则表达式,匹配所有关键词(不区分大小写)
- // // 对关键词进行转义,避免特殊字符影响正则
- // const escapedKeywords = keywords.value.map((keyword) => keyword.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'));
+ // 创建正则表达式,g表示全局匹配,i表示不区分大小写
+ const regex = new RegExp(`(${escapedKeywords.join('|')})`, 'gi');
- // // 创建正则表达式,g表示全局匹配,i表示不区分大小写
- // const regex = new RegExp(`(${escapedKeywords.join('|')})`, 'gi');
-
- // // 替换匹配到的关键词,用span包裹并添加高亮样式
- // return '你的答案:' + props.answerText.replace(regex, (match) => `${match}`);
- // });
+ // 替换匹配到的关键词,用span包裹并添加高亮样式
+ return '你的答案:' + props.answerText.replace(regex, (match) => `${match}`);
+ });
const dimension_all_score = computed(() => {
return (
evalSettingVos.value