随笔分类 -  开发中的问题

摘要:https://www.cnblogs.com/fat-jun/p/15692858.html 阅读全文
posted @ 2022-12-02 16:08 leahtao 阅读(161) 评论(0) 推荐(0) 编辑
摘要:需求:页面A选择查询条件,然后点击去其他页面,希望再次点击A页面的时候依旧缓存上次的查询条件,直到点击 x 关闭缓存失效,再次点击左侧菜单打开A页面的时候重新请求数据,但是目前是再次点击左侧菜单打开A页面的时候依旧使用的关闭之前的缓存,为什么缓存一直存在呢?现在就来看看如何解决这个问题 解决: 在 阅读全文
posted @ 2022-08-02 15:24 leahtao 阅读(2360) 评论(0) 推荐(0) 编辑
摘要:效果如图展示: <el-date-picker v-model="month" type="month" :clearable="false" placeholder="选择月份" format="yyyy 年 MM 月" value-format="yyyy-MM" style="margin-b 阅读全文
posted @ 2022-03-31 11:05 leahtao 阅读(176) 评论(0) 推荐(0) 编辑
摘要:// 打开一个浏览器 async initialize(){ this.browser = puppeteer.launch({headless: false}) } // 打开新的页签 async newPage(){ let { device } = this.options console.l 阅读全文
posted @ 2022-02-21 14:12 leahtao 阅读(705) 评论(0) 推荐(0) 编辑
摘要:BasicLayout是我的父组件,menu.js 配置了所有的子组件路由 如下 父组件路由配置 1 export default [ 2 { 3 path: '/nomatch/:type', 4 component: NoMatch, 5 }, 6 { 7 path: '', 8 compone 阅读全文
posted @ 2021-11-29 11:56 leahtao 阅读(3386) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/63690695/react-redirect-is-not-exported-from-react-router-dom/66985282 react-router-dom 6版本移除了 Redirect,用 Navigati 阅读全文
posted @ 2021-11-23 17:44 leahtao 阅读(1028) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/64936044/fix-the-upstream-dependency-conflict-installing-npm-packages 阅读全文
posted @ 2021-11-11 17:20 leahtao 阅读(1192) 评论(0) 推荐(0) 编辑
摘要:error /Users/admin/Desktop/workspace/xxxxx/xx/xxxx/task-platform1/node_modules/fibers: Command failed.Exit code: 127Command: node build.js || nodejs b 阅读全文
posted @ 2021-03-16 11:29 leahtao 阅读(7295) 评论(0) 推荐(0) 编辑
摘要:转时间格式 moment().format("YYYY-MM-DD") // 2020-01-26 再转标准时间 new Date('2021-01-26') // Fri Jun 05 2020 09:17:00 GMT+0800 (中国标准时间) 阅读全文
posted @ 2021-01-26 21:18 leahtao 阅读(148) 评论(0) 推荐(0) 编辑
摘要:类似下面这种功能: 点击添加表增加一行,删除表删除一行, 思路:将这个表单抽成一个单独的组件,维护一个时间戳数组,这个数组的作用就是通过map循环来生成动态表单,每次点击添加就在数组里添加一个时间戳。最终遍历有几个item就渲染几个表单。 实现: dynamic.js 动态表单 子组件 import 阅读全文
posted @ 2020-12-29 14:24 leahtao 阅读(3885) 评论(0) 推荐(0) 编辑
摘要:出现这个问题是因为当前设置的是cnpm 登录到的是cnpm,所以需要切换回来 可以输入一下命令查看当前的登录源: npm config get registry 淘宝源,需要切回到npmjs源,输入以下命令: npm config set registry=http://registry.npmjs 阅读全文
posted @ 2020-11-29 16:33 leahtao 阅读(611) 评论(0) 推荐(0) 编辑
摘要:一、 自动上传 就是在选择图片后立马上传 <el-upload action="" :http-request="ImgUploadSectionFile" list-type="picture-card" :auto-upload="true" ref="uploadLevelIcon" :lim 阅读全文
posted @ 2020-10-28 14:23 leahtao 阅读(2685) 评论(0) 推荐(0) 编辑
摘要:两个应用分别部署在http://192.168.8.168:7100和http://192.168.8.168:7200,登录后竟然可以在他们各自的cookie中找到彼此存储的值 查了一下原因都是这么说的: 根据同源策略,cookie是区分端口的,但是浏览器实现来说,“cookie区分域,而不区分端 阅读全文
posted @ 2020-10-20 18:34 leahtao 阅读(3978) 评论(1) 推荐(0) 编辑
摘要:在项目中直接使用对象的 hasOwnProperty 属性判断对象是否包含该值,用eslint fix 修复代码的时候报如下的错。 是ESLint 配置文件中的 "extends": "eslint:recommended" 属性启用了此规则。 在ECMAScript 5.1中,新增了 Object 阅读全文
posted @ 2020-09-07 11:12 leahtao 阅读(910) 评论(0) 推荐(1) 编辑
摘要:<ul id="repeat"> <li v-for="(value,key,index) in object" :key="value" @click="clickLevelType(value, index)"> {{ value }} {{key}} {{index}} </li> </ul> 阅读全文
posted @ 2020-09-04 15:42 leahtao 阅读(1851) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/bc397045937e https://segmentfault.com/a/1190000016258735 https://blog.csdn.net/tang_yi_/article/details/79401280 window.post 阅读全文
posted @ 2020-09-04 14:20 leahtao 阅读(4071) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="ztreebox"> <div v-if="editEnable" class="searchContainer"> <el-input v-model="searchtext" class="searchinput" type="text" size= 阅读全文
posted @ 2020-09-01 10:25 leahtao 阅读(451) 评论(0) 推荐(0) 编辑
摘要:最关键的就是 :file-list 属性 data中定义fileList 阅读全文
posted @ 2020-08-31 20:50 leahtao 阅读(2617) 评论(0) 推荐(1) 编辑
摘要:<el-upload style="display: inline-block;" class="upload-demo" action="" :on-change="handleChange" :on-exceed="handleExceed" :on-remove="handleRemove" 阅读全文
posted @ 2020-08-31 20:44 leahtao 阅读(651) 评论(0) 推荐(0) 编辑
摘要:业务需要导出表格数据,后端返回的是二进制数据流,使用axios请求,在前端接收到的是如下: 这就是二进制数据流,看不懂不要紧,前端只要处理如何下载就行了,下面就贴一下具体的代码实现。 axios封装: import axios from "axios"; import { Loading, Mess 阅读全文
posted @ 2020-08-24 17:00 leahtao 阅读(1269) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示