Commit 64d6fece084993d1cdd358c457e1b21549cb3f89

Authored by luocong2016
Committed by GitHub
1 parent be3d98fa

docs: optimization point notes (#2534)

src/views/sys/login/useLogin.ts
... ... @@ -13,6 +13,9 @@ export enum LoginStateEnum {
13 13  
14 14 const currentState = ref(LoginStateEnum.LOGIN);
15 15  
  16 +// 这里也可以优化
  17 +// import { createGlobalState } from '@vueuse/core'
  18 +
16 19 export function useLoginState() {
17 20 function setLoginState(state: LoginStateEnum) {
18 21 currentState.value = state;
... ...