Ver Fonte

refactor(student page): add forceLogout2 helper function

add a simplified logout wrapper function and expose it in component setup
lsc há 3 dias atrás
pai
commit
c20ccbb66f
1 ficheiros alterados com 5 adições e 0 exclusões
  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,
   }