Forráskód Böngészése

Merge branch 'beta' into HK

lsc 7 hónapja
szülő
commit
f182cd78d3

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 16 - 6
src/components/classRoomHelper/component/searchArea.vue


+ 22 - 2
src/components/classRoomHelper/index.vue

@@ -370,13 +370,22 @@ export default {
 			getWangLoading:false,
 			getWangLoading:false,
 			canUseWangData:false,
 			canUseWangData:false,
 			wangData:"",
 			wangData:"",
+			languageSetting:0,
     };
     };
   },
   },
   mounted() {
   mounted() {
+		let setting = this.courseDetail.setting;
+		if(setting){
+			setting = JSON.parse(setting);
+			if(setting.languageSetting){
+				this.languageSetting = setting.languageSetting;
+			}
+		}
     this.setWidth();
     this.setWidth();
     this.getFileId();
     this.getFileId();
 		this.firstEnterTime = new Date().getTime();
 		this.firstEnterTime = new Date().getTime();
 		this.getWantSearch();
 		this.getWantSearch();
+		
 		setTimeout(()=>{
 		setTimeout(()=>{
 			this.canGetTips = true;
 			this.canGetTips = true;
 			this.getTipsList()
 			this.getTipsList()
@@ -411,7 +420,7 @@ export default {
         });
         });
         _textData += "\n";
         _textData += "\n";
       });
       });
-			let _msg = `Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.if the user speaks Chinese Traditional, the specific text of your answer should also be in Chinese Traditional.
+			let _msg = `Language: ${this.getLang()}
 ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
 ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
 Instruction: Based on the context, follow "Format example", write content
 Instruction: Based on the context, follow "Format example", write content
 
 
@@ -688,7 +697,7 @@ let params = {
 			this.canUseWangData = false
 			this.canUseWangData = false
 			this.wangData=""
 			this.wangData=""
       let _msg = `
       let _msg = `
-Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.if the user speaks Chinese Traditional, the specific text of your answer should also be in Chinese Traditional.
+Language: ${this.getLang()}
 ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
 ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
 Instruction: Based on the context, follow "Format example", write content
 Instruction: Based on the context, follow "Format example", write content
 
 
@@ -778,6 +787,17 @@ Instruction: Based on the context, follow "Format example", write content
 					console.log(e);
 					console.log(e);
         });
         });
       // this.getWAntSearchContent(_uuid);
       // this.getWAntSearchContent(_uuid);
+    },
+		getLang(){
+      let lang = ''
+      if(this.languageSetting == 0){
+        lang = 'Chinese.'
+      }else if(this.languageSetting == 1){
+        lang = 'Traditional Chinese.'
+      }else if(this.languageSetting == 2){
+        lang = 'English.'
+      }
+      return lang
     },
     },
 		getWanData(){
 		getWanData(){
 			if(this.wangData && this.canUseWangData){
 			if(this.wangData && this.canUseWangData){

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott