fix: 知识点无内容处理

This commit is contained in:
yanghang
2025-07-17 17:05:49 +08:00
parent cfcda80e03
commit 212c25a677
2 changed files with 3 additions and 7 deletions
+3
View File
@@ -155,6 +155,9 @@ export default class WebSocketUtil {
} else {
console.error('WebSocket连接未打开,无法发送消息');
this.triggerEvent('error', new Error('WebSocket连接未打开'));
setTimeout(()=>{
this.send(message)
},500)
}
return this;
}
-7
View File
@@ -176,12 +176,6 @@ const flagVal = ref('1')
const isUploadingVoice = ref(false)
// 初始化数据
const getData = async (flag) => {
// if(flag === flagVal.value){
// flagVal.value = '2'
// }else{
// return
// }
console.log(11111111)
try{
initsocketTask()
const { body } = await getCourseStudyInfoApi({crsId: crsId.value})
@@ -373,7 +367,6 @@ const getGraphInfoUnStudy = (flag = 0) => {
if(!_body.chatBody) {
return
}
console.log('prgh', _body)
if(Number(_body.bodyTyp) === 7){
common.show('恭喜你已学完全部知识点', '有什么心得跟我们分享吗?',true, '取消','去评论').then((res) => {
if(res) {