![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
James_F
这个作者很懒,什么都没留下…
展开
-
vue中实现基于Element的简易下拉框
在需用的组件页面添加下拉框: <el-form label-width="100px"> <el-select placeholder="请选择职位" style="width:300px" v-model="choice"> <el-option //简单的循环赋值 v-for="item in table"原创 2021-04-07 19:33:04 · 272 阅读 · 0 评论 -
VUE框架中登陆后刷新用户丢失问题
VUE框架中登陆后刷新用户丢失问题 之前用vue写了拦截器,但一刷新登录用户就没了,搞了一会儿才发现是没对存储的值进行判定使用;淦 store文件夹下的index.js中的getter: getters: { users:state=>{ //判定获取后的值是否为空值, if(!state.users){ //获取新的值返回 return JSON.parse(sessionStorage.getItem("users")); }else{ //为空原创 2021-04-05 16:17:12 · 486 阅读 · 0 评论