Commit 64d6fece084993d1cdd358c457e1b21549cb3f89
Committed by
GitHub
1 parent
be3d98fa
docs: optimization point notes (#2534)
Showing
1 changed file
with
3 additions
and
0 deletions
src/views/sys/login/useLogin.ts
@@ -13,6 +13,9 @@ export enum LoginStateEnum { | @@ -13,6 +13,9 @@ export enum LoginStateEnum { | ||
13 | 13 | ||
14 | const currentState = ref(LoginStateEnum.LOGIN); | 14 | const currentState = ref(LoginStateEnum.LOGIN); |
15 | 15 | ||
16 | +// 这里也可以优化 | ||
17 | +// import { createGlobalState } from '@vueuse/core' | ||
18 | + | ||
16 | export function useLoginState() { | 19 | export function useLoginState() { |
17 | function setLoginState(state: LoginStateEnum) { | 20 | function setLoginState(state: LoginStateEnum) { |
18 | currentState.value = state; | 21 | currentState.value = state; |