Explorar el Código

feat(student page): add send message when update isResultArray

在学生页面的setCan方法中,新增更新isResultArray后发送消息的逻辑,同步状态到其他模块
lsc hace 1 semana
padre
commit
4ca14c8ccd
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/views/Student/index.vue

+ 5 - 0
src/views/Student/index.vue

@@ -3053,6 +3053,11 @@ const setIsResultArray = () => {
 
 const setCan = (Array: any[]) => {
   isResultArray.value = Array
+  sendMessage({ 
+    type: 'isResultArray', 
+    isResultArray: isResultArray.value,
+    courseid: props.courseid 
+  })
 }
 
 const forceLogout = () => {