随笔分类 -  前端

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页
摘要:https://github.com/kaorun343/vue-property-decorator 阅读全文
posted @ 2020-12-17 11:08 彭成刚 阅读(3705) 评论(0) 推荐(0)
摘要:git clone https://pd.zwc365.com/seturl/< https 开头的项目地址> npm install --registry=https://registry.npm.taobao.org npm 的下载加速,为什么不用cnpm,是因为生成的目录结构不一样,某些时候回 阅读全文
posted @ 2020-12-17 10:33 彭成刚 阅读(396) 评论(0) 推荐(0)
摘要:vue3 如果用ts,导出时候要用 defineComponent,这俩是配对的,为了类型的审查正确 阅读全文
posted @ 2020-12-17 09:51 彭成刚 阅读(9532) 评论(0) 推荐(1)
摘要:https://desktop.docker.com/win/stable/Docker%20Desktop%20Installer.exe 安装遇到了 然后 更新 这个 https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update 阅读全文
posted @ 2020-12-16 08:39 彭成刚 阅读(142) 评论(0) 推荐(0)
摘要:![](https://img2020.cnblogs.com/blog/26752/202012/26752-20201214143306523-552939745.png) 阅读全文
posted @ 2020-12-14 14:33 彭成刚 阅读(100) 评论(0) 推荐(0)
摘要:主要是冷启动,实际中项目非常庞大,现在1w的笔记本,每次冷启动,也得等一下,所以准备转型 Vite+Vue3.0,毕竟Vite不支持Vue2.0,这就只能下个项目的时候再启动了。 $ npm init vite-app <project-name> $ cd <project-name> //进入项 阅读全文
posted @ 2020-12-11 09:50 彭成刚 阅读(1285) 评论(0) 推荐(0)
摘要:李昱版 { "editor.fontSize": 20, "workbench.iconTheme": "material-icon-theme", "workbench.colorTheme": "Spacegray Eighties Dark", // "terminal.integrated. 阅读全文
posted @ 2020-12-09 10:51 彭成刚 阅读(115) 评论(0) 推荐(0)
摘要:今天页面突然卡死了,也不知道是因为什么,直连服务器,能行,自己本机nginx的,系统访问某个特定的api就会卡死。 经过尝试,发现今天测试的AutoFill影响的。 阅读全文
posted @ 2020-12-08 17:04 彭成刚 阅读(2764) 评论(0) 推荐(0)
摘要:class asyncTool { constructor () { this.arr = [] this.ctx = {} } use (func) { const into = { func, next: () => {} } this.arr.push(into) if (this.arr.l 阅读全文
posted @ 2020-11-24 14:10 彭成刚 阅读(1385) 评论(0) 推荐(0)
摘要:合并分支前要全部提交 包括config.js 要不merge时候很麻烦 1 切换到master分支 Checkout 2 Merge into Current 3 commit push 4 切换回dev 阅读全文
posted @ 2020-11-20 14:41 彭成刚 阅读(1152) 评论(0) 推荐(0)
摘要:npm config set registry https://registry.npm.taobao.org 阅读全文
posted @ 2020-11-19 11:37 彭成刚 阅读(195) 评论(0) 推荐(0)
摘要:换了新电脑Y7000 10750H,之前的项目提示这个,本以为删个什么文件,搜了一阵,没找到答案。 简单粗暴的方法就是再git clone一下,就ok了,这点很不爽。暂时先这么解决了。 阅读全文
posted @ 2020-11-19 10:04 彭成刚 阅读(2408) 评论(0) 推荐(0)
摘要:withCredentials: false, 默认值虽然是false,但是之前包装的时候设置成true了,所以最后再设置回来 阅读全文
posted @ 2020-11-10 16:20 彭成刚 阅读(885) 评论(0) 推荐(0)
摘要:进入dist目录 "build:war": "cd dist && jar -cvf ../yourName_web.war *", 阅读全文
posted @ 2020-11-06 12:12 彭成刚 阅读(587) 评论(0) 推荐(0)
摘要:<template> <div> <div id="china_map_box"> <div id="china_map" style="height: 600px; width: 700px;"></div> </div> </div> </template> <script> import ec 阅读全文
posted @ 2020-10-10 08:36 彭成刚 阅读(260) 评论(0) 推荐(0)
摘要:https://github.com/rockyuse/svgMap 阅读全文
posted @ 2020-09-30 09:51 彭成刚 阅读(656) 评论(0) 推荐(0)
摘要:git reset --hard HEAD~1 阅读全文
posted @ 2020-09-18 11:43 彭成刚 阅读(943) 评论(0) 推荐(0)
摘要:数组动态表单验证,添加数组,逆序添加,表单验证会错位,发现是key的默认index问题,还有验证trigger问题,添加数据会爆红 解决方案: trigger: 'blur,change' 换 trigger: 'blur' :key="item.sort" (原来是 :key="index") < 阅读全文
posted @ 2020-09-17 20:04 彭成刚 阅读(234) 评论(0) 推荐(0)
摘要:vue.config.js let ret = '' const date = new Date() ret += date.getFullYear() ret += '-'+ (date.getMonth() + 1) ret += '-'+ date.getDate() ret += '_'+ 阅读全文
posted @ 2020-09-17 15:22 彭成刚 阅读(669) 评论(0) 推荐(0)
摘要:这里的核心问题就是验证的时候value值不对,总是初始化的值,不论怎么设置,开始觉得是数组指针的问题,最后也不行,null也不行,组件的props都已经是null了,验证就是这么神奇,最后把this放到rule里面,好吧,就这样了。 DatePicker 日期选择器 time: [ { requir 阅读全文
posted @ 2020-09-15 20:06 彭成刚 阅读(314) 评论(0) 推荐(0)

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页