avue
chenlengsu_it
这个作者很懒,什么都没留下…
展开
-
关于cookie 设置不进去导致的问题
下面是通过用 js-cookie 设置 tokenimport Cookies from 'js-cookie' // @2.2.0 版本import website from '@/config/website'const Authorization = website.Authorization // key 名var inFifteenMinutes = new Date(new Date().getTime() + website.tokenTime * 1000) // cookie保存时原创 2021-12-20 10:00:48 · 937 阅读 · 0 评论 -
vue 关于 重复数据的的问题
学习到了 new Set()的去重功能,基本用法 let arr = [ { label: 123, }, { label: 321, }, { label: 321, }, ] let newArr = arr.map(item => item.label) let fillter = Array.from(new Set([...newArr]))原创 2021-11-16 16:05:11 · 2767 阅读 · 0 评论 -
avue option 文件vm调用多次,导致 搜索会清空搜索框
原因 :使用了avue的开源框架,其中因为dicData取到了vm.data,调用了this 导致触发了封装的computed的方法,触发了多次option,option重复渲染,导致search :true 的情况下 ,页面调用搜索的时候 重置搜索框内的数据 computed: { option() { return require(`@/option/${option.name}`).default(this) }, 。。。 }解决方案原创 2021-09-18 09:21:24 · 2887 阅读 · 0 评论 -
avue crud tree点击 编辑 会把 tree 表格收起来
avue crud tree的时候,option 的如果有prop 为 icon的,点击编辑弹框,会把crud 表格重新渲染原创 2021-09-01 11:34:31 · 819 阅读 · 5 评论