luocong2016
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
src/views/sys/login/useLogin.ts
|
|
|
@ -13,6 +13,9 @@ export enum LoginStateEnum { |
|
|
|
|
|
|
|
const currentState = ref(LoginStateEnum.LOGIN); |
|
|
|
|
|
|
|
// 这里也可以优化
|
|
|
|
// import { createGlobalState } from '@vueuse/core'
|
|
|
|
|
|
|
|
export function useLoginState() { |
|
|
|
function setLoginState(state: LoginStateEnum) { |
|
|
|
currentState.value = state; |
|
|
|
|