未验证 提交 64d6fece 编写于 作者: qq_25847755's avatar qq_25847755 提交者: GitHub

docs: optimization point notes (#2534)

上级 be3d98fa
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册