docs: optimization point notes (#2534)
This commit is contained in:
parent
be3d98fa3d
commit
64d6fece08
|
|
@ -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…
Reference in New Issue