摘要: 执行命令:npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ 将binary指向淘宝镜像即可。 阅读全文
posted @ 2023-05-31 12:48 秋风2016 阅读(112) 评论(0) 推荐(0) 编辑
摘要: word-wrap: break-word; word-break: break-all; line-break: anywhere; 阅读全文
posted @ 2023-04-13 15:09 秋风2016 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 解决方案: 在tab切换的外层添加一个父元素。给父元素一个动态的key属性。(可以是时间戳) 每次切换tab时,动态的改变key属性的值。 阅读全文
posted @ 2022-06-06 16:04 秋风2016 阅读(218) 评论(0) 推荐(0) 编辑
摘要: uni.switchTab({ url: '/pages/my/my', success() { // 刷新我的页面 let pages = getCurrentPages(); let page = getCurrentPages().pop(); if (page == undefined || 阅读全文
posted @ 2022-02-08 16:31 秋风2016 阅读(1395) 评论(0) 推荐(0) 编辑
摘要: let arr = [ { name: 'job', year: 18 }, { name: 'Bob', year: 16 } ] let obj = { name: 'Bob', sex: '男' } const activeIndex = arr.findIndex(d => d.name o 阅读全文
posted @ 2021-12-08 17:38 秋风2016 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 前端开发的痛,微信内置浏览器缓存严重,试了网上各种方法都不管大用, 偶然发现切换微信的普通模式或深色模式,竟然可以解决缓存的问题。 遇到这个问题的可以试一试,希望对你有所帮助! 阅读全文
posted @ 2021-11-23 11:01 秋风2016 阅读(952) 评论(0) 推荐(0) 编辑
摘要: 1 // 说明:本文件代码以vue工程化项目为例,其他类型项目请自行微改!!! 2 // 导入js-cookie依赖 3 import Cookies from "js-cookie"; 4 // 操作浏览器本地存储 5 const storage = window.localStorage; 6 阅读全文
posted @ 2021-11-04 15:30 秋风2016 阅读(695) 评论(0) 推荐(0) 编辑
摘要: .el-menu-container { height: calc(100% - 60px); scrollbar-width: none; /* firefox */ -ms-overflow-style: none; /* ie10+ */ overflow-x: hidden; overflo 阅读全文
posted @ 2021-10-26 16:48 秋风2016 阅读(113) 评论(0) 推荐(0) 编辑
摘要: import $ from 'jquery'; import html2canvas from 'html2canvas'; import QRCode from 'qrcodejs2'; /** * 生成长图 */ export function createLonggraph() { const 阅读全文
posted @ 2021-08-27 17:12 秋风2016 阅读(344) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/6a4d0c6e26c2 记录 解决循环数组,多个el-upload上传传参问题。 阅读全文
posted @ 2021-07-02 16:13 秋风2016 阅读(1102) 评论(0) 推荐(0) 编辑