11 2020 档案
vant toast 样式引入
摘要:import { Toast } from 'vant' import 'vant/lib/index.css' Vue.use(Toast); 页面中 this.$toast("提示"); 阅读全文
posted @ 2020-11-27 18:16 田间麦籽 阅读(3184) 评论(0) 推荐(0)
Error: Can‘t resolve ‘swiper/css/swiper.css‘ 解决方案
摘要:问题出在 main.js 中 import 'swiper/css/swiper.css' 这句话上 因为安装的swiper依赖中没有对应的swiper.css 应该替换为 import 'swiper/swiper-bundle.css' 阅读全文
posted @ 2020-11-27 13:59 田间麦籽 阅读(2844) 评论(0) 推荐(0)
Vue中使用provide/inject实现页面reload的方法
摘要:https://www.leixuesong.com/3646 https://www.cnblogs.com/zjxiang008/p/12167961.html 在实际的Web开发项目中,经常会遇到在列表删除一条数据或者新增数据之后需要重新刷新当前页面的需求,以获得最新的列表数据。通常可以使用w 阅读全文
posted @ 2020-11-26 12:04 田间麦籽 阅读(891) 评论(0) 推荐(0)
vue 中 关于路径 @ 以及 ~的意义
摘要:在项目的样式里引入样式,就像这样: 有三点要补充说明一下哦。 样式里引入样式,需要用 @import这种开头。 还要在样式里引入样式,并且想要使用 @ 符号表示src目录, 在以上前提下,需要在 @ 前加上~波浪号代表根目录。 可以看到,我没有写后缀名,那是因为vue会去寻找目录的mixins.st 阅读全文
posted @ 2020-11-26 11:49 田间麦籽 阅读(495) 评论(0) 推荐(0)
ValidationError: Invalid options object. Stylus Loader has been initialized using an options object that does not match the API schema.
摘要:安装stylus之后报以上错误,stylus-loader的版本,降个3.0.2版本解决 阅读全文
posted @ 2020-11-26 11:45 田间麦籽 阅读(321) 评论(0) 推荐(0)
vue 去除链接后的#
摘要:路由页面中添加 mode:''history'; vue-router中,如果跳转路由后直接跳转页面顶部等,只能使用history模式。 阅读全文
posted @ 2020-11-26 10:38 田间麦籽 阅读(149) 评论(0) 推荐(0)
vue li3 用eslint 报错warning Replace `··` with `{⏎` 等
该文被密码保护。
posted @ 2020-11-25 17:45 田间麦籽 阅读(0) 评论(0) 推荐(0)