docs: optimization point notes (#2534)

This commit is contained in:
luocong2016 2023-02-15 11:43:50 +08:00 committed by GitHub
parent be3d98fa3d
commit 64d6fece08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

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