随笔分类 -  前端开发干货

工作中的一些干货,可以直接 使用
摘要:在tsconfig.json里 设置或者添加: "suppressImplicitAnyIndexErrors": true, "noImplicitAny":false, 阅读全文
posted @ 2021-08-31 14:51 First·林肯 阅读(538) 评论(0) 推荐(0)
摘要:问题描述:使用vue-router4.0 设置为HTML5模式,也就是不带#号的模式,本地运行没有一点问题,但是一打包除了app.vue其他的都加载不出来。 本地打开也不行,本地就是不能打开 解决方法: //process.env.VUE_APP_ROUTER : 服务器文件夹的名字,或者nginx 阅读全文
posted @ 2021-07-21 14:28 First·林肯 阅读(3461) 评论(0) 推荐(0)
摘要:问题说明: regionData.value = '北京' 在安卓手机下一点问题都没有,但是在ios手机上面 怎么赋值都不更新视图 解决办法: 添加 v-html="regionData" 一劳永逸 阅读全文
posted @ 2021-07-19 16:41 First·林肯 阅读(294) 评论(0) 推荐(0)
摘要:vue3.0子组件 emit 出现警告 Extraneous non-emits event listeners (okUploadImg) were passed to component but could not be automatically inherited because compo 阅读全文
posted @ 2021-07-01 11:23 First·林肯 阅读(4310) 评论(0) 推荐(0)
摘要:<router-view class="router-view" v-slot="{ Component }"> <transition name="fade-transform" mode="out-in"> <component :is="Component" /> </transition> 阅读全文
posted @ 2021-05-19 14:32 First·林肯 阅读(1014) 评论(0) 推荐(0)
摘要:合并效果 代码: //el-table 上面加上 :span-method="cellMerge" let tableData = ref(null) watch(props, (newValue, oldValue) => { tableData.value = props.tableDatas 阅读全文
posted @ 2021-05-13 15:25 First·林肯 阅读(2734) 评论(0) 推荐(1)
摘要:vue3.0 配合 element-plus 在使用时间日期选择时, value-format 无法设置选中值的解决办法,以及一些零零散散的坑 完整代码: <!-- HTML部分 --> <el-date-picker v-model="ruleForm.f_xdsj_time" type="dat 阅读全文
posted @ 2021-05-13 15:19 First·林肯 阅读(8940) 评论(3) 推荐(0)
摘要:const isOpen = ref(false) //控制弹出层是否显示 const dropdownRef = ref(null) const handler = (e:MouseEvent)=>{ if(dropdownRef.value){ if(!dropdownRef.value.con 阅读全文
posted @ 2021-04-28 16:30 First·林肯 阅读(1541) 评论(0) 推荐(0)
摘要:说明: 通过ajax发送请求,后端直接返回文件流 下载方法。 一般情况下 new Blod 里面是 res 看后台传的是啥子 axios({ method: "get", url: process.env.VUE_APP_API_PATH_BASE+url, params: data, respon 阅读全文
posted @ 2021-04-21 15:30 First·林肯 阅读(686) 评论(0) 推荐(0)