Explorar el Código

perf: 解决登录按钮 loading 不会关闭的问题

奔跑的面条 hace 3 años
padre
commit
a34544296a
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/views/login/index.vue

+ 1 - 0
src/views/login/index.vue

@@ -225,6 +225,7 @@ const handleSubmit = async (e: Event) => {
         window['$message'].success(t('login.login_success'))
         routerTurnByName(PageEnum.BASE_HOME_NAME, true)
       }
+      loading.value = false
     } else {
       window['$message'].error(t('login.login_message'))
     }