摘要: 通常我们把用户信息存储到仓库中时,刷新后信息会丢失。一般还会再存储到本地。 方法如下: 其中Profile是用户信息类型注解 import {Profile} from '@/types/user' const key = 'my_key' // 存储用户信息 export const setUse 阅读全文
posted @ 2022-08-01 08:49 Tricia11 阅读(20) 评论(0) 推荐(0)