mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-04-24 23:47:17 +08:00
perf: info
This commit is contained in:
parent
0838e69d23
commit
27ae6a0ec7
@ -16,6 +16,7 @@ import {
|
||||
import { message } from "@/utils/message";
|
||||
import { formRulesPwd, formRulesEmail } from "./rule";
|
||||
import type { FormInstance } from "element-plus";
|
||||
import type { DataInfo } from "@/utils/auth";
|
||||
|
||||
export function useUser(tableRef: Ref, treeRef: Ref) {
|
||||
console.log(tableRef, treeRef);
|
||||
@ -55,7 +56,7 @@ export function useUser(tableRef: Ref, treeRef: Ref) {
|
||||
});
|
||||
/** 用户信息 */
|
||||
const userInfo = computed(() => {
|
||||
return storageLocal().getItem("user-info").user;
|
||||
return storageLocal().getItem<DataInfo<Date>>("user-info")?.user;
|
||||
});
|
||||
/** 获取邮箱验证码 */
|
||||
const getEmailCode = email => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user