摘要: npm install --save-dev sass-resources-loader module.exports = { configureWebpack: (config) => { pluginOptions: { // 配置全局less "style-resources-loader": 阅读全文
posted @ 2021-12-31 09:50 敲敲碰碰 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1.indexOf去重 function unqueArray (arr) { let unqueArray = arr.filter(function(elem, index, self) { return index == self.indexOf(elem); }) return unqueA 阅读全文
posted @ 2021-12-30 10:42 敲敲碰碰 阅读(34) 评论(0) 推荐(0) 编辑
摘要: async copyTextBtn(val) { if (!val.desc) return Toast.fail("未上传文案"); let oInput = document.createElement("input"); oInput.value = val.desc.slice(0, 200 阅读全文
posted @ 2021-12-13 11:05 敲敲碰碰 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 浪费了三天时间终于把这个坑填完,ios兼容和安卓兼容问题很多,总结一下供大家参考,如有不足,欢迎大家留言指正,谢谢。 一、产品要求与项目配置。 产品要求:在列表页面点击按钮,唤起分享面板,进行分享。(无法实现,h5无法通过js唤起分享面板)。 产品要求改进:通过微信右上角三个点进行分享,但是需要分享 阅读全文
posted @ 2021-12-13 11:01 敲敲碰碰 阅读(609) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-11-05 11:30 敲敲碰碰 阅读(342) 评论(0) 推荐(0) 编辑
摘要: import { reactive, ref, toRefs, onMounted, getCurrentInstance, computed, watch } from 'vue' import { useStore } from 'vuex' // vuex const store = useS 阅读全文
posted @ 2021-08-05 18:05 敲敲碰碰 阅读(927) 评论(0) 推荐(1) 编辑
摘要: elementPlus使用/deep/会警告可以用下面方法替换: :deep(.el-input__inner){ border: 1px solid #9CAABF } 阅读全文
posted @ 2021-08-05 09:27 敲敲碰碰 阅读(833) 评论(0) 推荐(0) 编辑
摘要: vue4+提供了useStore,引入useStore,其他写法就可以和之前的写法类似,具体如下: <template> <div>{{ $store.state.count }}</div> <button @click="myCommit ">点击</button> </template> sc 阅读全文
posted @ 2021-08-05 09:10 敲敲碰碰 阅读(3086) 评论(0) 推荐(0) 编辑
摘要: 1.项目目录 2.index.js import axios from 'axios' import router from '../router/index' import { ElLoading, ElMessage } from 'element-plus' import config fro 阅读全文
posted @ 2021-08-05 08:59 敲敲碰碰 阅读(1990) 评论(0) 推荐(0) 编辑
摘要: 1.el-menu上加上@select='selectmenu' 2.methods里面加入selectmenu方法 selectmenu (index, indexPath) { this.activeMenu = index window.localStorage.setItem('active 阅读全文
posted @ 2021-07-28 15:41 敲敲碰碰 阅读(5868) 评论(1) 推荐(1) 编辑