Explorar el Código

refactor(student page): add forceLogout2 helper function

add a simplified logout wrapper function and expose it in component setup
lsc hace 3 días
padre
commit
c20ccbb66f
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

@@ -3154,6 +3154,10 @@ const forceLogout = () => {
   sendMessage({ type: 'logout' })
 }
 
+const forceLogout2 = () => {
+  logout()
+}
+
 const logout = () => {
   // @ts-ignore
   if (window.parent && typeof window.parent.topU.U.MD.U.LO.logoutSystemQ === 'function') {
@@ -3989,6 +3993,7 @@ onMounted(() => {
     manualReconnect,
     connectionStatus: computed(() => connectionStatus.value),
     forceLogout,
+    forceLogout2,
     setCan,
   }