|
@@ -5282,6 +5282,12 @@ import { v4 as uuidv4 } from "uuid";
|
|
|
import MarkdownIt from "markdown-it";
|
|
|
import aiCreateDialog from './aiCreateDialog.vue'
|
|
|
import aiCreateVideoDialog from './aiCreateVideoDialog.vue'
|
|
|
+var OpenCC = require("opencc-js");
|
|
|
+let converter = OpenCC.Converter({
|
|
|
+ from:'hk',
|
|
|
+ to:'cn'
|
|
|
+})
|
|
|
+
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -13449,7 +13455,7 @@ ${message} 以及##参考资料 以文本格式输出项目概况,驱动性问
|
|
|
// if (data.choices && data.choices.length && data.choices[0].message) {
|
|
|
// _this.courseText = data.choices[0].message.content
|
|
|
// }
|
|
|
- if (response.data.FunctionResponse.result == "发送成功") {
|
|
|
+ if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
|
|
|
} else {
|
|
|
this.$message.warning(response.data.FunctionResponse.result);
|
|
|
}
|
|
@@ -13886,10 +13892,10 @@ ${message} 以及##参考资料 以文本格式输出项目概况,驱动性问
|
|
|
askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
}
|
|
|
|
|
|
- if(_task.toolChoose[j].tool == '问答'){
|
|
|
+ if(converter(_task.toolChoose[j].tool) == converter('问答')){
|
|
|
let answerQ = await _this.aiCreateQuestion(15, i)
|
|
|
_json.answerQ = answerQ.answerQ
|
|
|
- }else if(_task.toolChoose[j].tool == '选择题'){
|
|
|
+ }else if(converter(_task.toolChoose[j].tool) == converter('选择题')){
|
|
|
let testJson = await _this.aiCreateQuestion(45, i)
|
|
|
_json.testJson = {"testCount":testJson.length,"testTitle":"","testJson":testJson}
|
|
|
}
|
|
@@ -14387,7 +14393,7 @@ ${msg} 及#教学任务描述 以文本格式输出任务设计和评价标准
|
|
|
// _this.$forceUpdate()
|
|
|
// }
|
|
|
|
|
|
- if (response.data.FunctionResponse.result == "发送成功") {
|
|
|
+ if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
|
|
|
} else {
|
|
|
this.$message.warning(response.data.FunctionResponse.result);
|
|
|
}
|
|
@@ -14525,7 +14531,7 @@ ${msg}
|
|
|
// _this.$forceUpdate()
|
|
|
// }
|
|
|
// _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
|
|
|
- if (response.data.FunctionResponse.result == "发送成功") {
|
|
|
+ if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
|
|
|
} else {
|
|
|
this.$message.warning(response.data.FunctionResponse.result);
|
|
|
}
|
|
@@ -14663,7 +14669,7 @@ ${msg} 输出格式和内容要求参考#格式与要求
|
|
|
// _this.$forceUpdate()
|
|
|
// }
|
|
|
// _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
|
|
|
- if (response.data.FunctionResponse.result == "发送成功") {
|
|
|
+ if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
|
|
|
} else {
|
|
|
this.$message.warning(response.data.FunctionResponse.result);
|
|
|
}
|
|
@@ -14947,7 +14953,7 @@ ${_text2}`
|
|
|
// _this.$forceUpdate()
|
|
|
// }
|
|
|
// _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
|
|
|
- if (response.data.FunctionResponse.result == "发送成功") {
|
|
|
+ if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
|
|
|
} else {
|
|
|
this.$message.warning(response.data.FunctionResponse.result);
|
|
|
}
|
|
@@ -15107,7 +15113,7 @@ ${this.aitype == 'aiCpote4' ? '## 目标层\n'+this.cpote['cpote3'] : ''}`
|
|
|
// _this.$forceUpdate()
|
|
|
// }
|
|
|
// _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
|
|
|
- if (response.data.FunctionResponse.result == "发送成功") {
|
|
|
+ if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
|
|
|
} else {
|
|
|
this.$message.warning(response.data.FunctionResponse.result);
|
|
|
}
|