fix: 知识点无内容处理
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user