上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页
摘要: .babelrc文件 { "presets": [ [ "env", { "modules": false, "targets": { "browsers": [ "> 1%", "last 2 versions", "not ie <= 8" ] } } ], "stage-2" ], "plug 阅读全文
posted @ 2021-12-24 16:32 yw3692582 阅读(103) 评论(0) 推荐(0)
摘要: 文件:build-utils.js if (options.extract) { return ExtractTextPlugin.extract({ use: loaders, publicPath: '../../', // 添加这句 fallback: 'vue-style-loader', 阅读全文
posted @ 2021-10-12 12:54 yw3692582 阅读(249) 评论(0) 推荐(0)
摘要: yAxis:{ scale: true, // y轴起始值自适应 } 阅读全文
posted @ 2021-10-09 09:44 yw3692582 阅读(1125) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-10-08 16:31 yw3692582 阅读(141) 评论(0) 推荐(0)
摘要: 文章地址:https://segmentfault.com/a/1190000020230779?utm_source=tag-newest 阅读全文
posted @ 2021-09-18 11:14 yw3692582 阅读(288) 评论(0) 推荐(0)
摘要: let whitelist = ['/login'] // 拦截器白名单,登录时不添加 token // 请求拦截 axios.interceptors.request.use( config => { // 拦截白名单以及添加token if (whitelist.includes(config. 阅读全文
posted @ 2021-09-09 10:57 yw3692582 阅读(521) 评论(0) 推荐(0)
摘要: let Img = new Image() Img.src = this.full_img_src if (Img.fileSize > 0 || (Img.width > 0 && Img.height > 0)) { } else { return this.$message.error('找不 阅读全文
posted @ 2021-08-27 14:48 yw3692582 阅读(886) 评论(0) 推荐(0)
摘要: function(file_type){ let url = '文件的url地址' let file_suffix = { // 后缀 img: '.jpg', video: '.mp4', } let file_name = 'file' + file_suffix[file_type] // 文 阅读全文
posted @ 2021-08-27 13:03 yw3692582 阅读(1029) 评论(0) 推荐(0)
摘要: 语法:navigator.sendBeacon(url, data); 例子(写在mounted中): window.addEventListener("beforeunload", (e) => { window.navigator.sendBeacon(url, '测试发送的数据'); });参 阅读全文
posted @ 2021-08-24 19:51 yw3692582 阅读(208) 评论(0) 推荐(0)
摘要: <el-dialog title="上传文件" :visible.sync="upload_dialog" :close-on-click-modal="false" :close-on-press-escape="false" :show-close="false" width="500px" > 阅读全文
posted @ 2021-08-13 13:21 yw3692582 阅读(102) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页