Browse Source

docs: optimization point notes (#2534)

pull/2555/head
luocong2016 3 years ago
committed by GitHub
parent
commit
64d6fece08
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/views/sys/login/useLogin.ts

3
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;

Loading…
Cancel
Save