会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小蘑菇123
我可以蹲下来,陪你做一只蘑菇。 我愿意分担你的不快乐, 只是当你的世界下雨时单纯的为你撑起一把伞。 请你不要封闭自己的心,一个人承受那么多。 无论何时,请记住, 你知道的, 只要你睁开眼,你从来都不是一个人。 至少还有我… 我一直在守候!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
20
下一页
2020年10月21日
在 vuex 存取数据
摘要: 1、在 src 里面,新建 store 文件夹,里面分别再创建 modules 文件夹、getters.js 和 index.js : 2、modules 里面,创建 print.js: const state={ goodsForeNo: '' } const mutations = { STOR
阅读全文
posted @ 2020-10-21 14:45 小蘑菇123
阅读(1513)
评论(0)
推荐(0)
2020年10月20日
vue 上传图片,转base64取不到.onload的值
摘要: 1、例如: <1-- 选择证件图片 --><ul class="upload-imgs"> <!-- imgLen 为选择几张图片,当前设置了选择一张后隐藏选择按钮 --> <li v-if="imgLen == 1 ? false : true"> <input type="file" class
阅读全文
posted @ 2020-10-20 16:40 小蘑菇123
阅读(1257)
评论(0)
推荐(0)
2020年10月15日
获取两个日期之间的年月(可跨年)
摘要: 1、例如:输入起止时间,获取以下内容 2、方法如下: getYearAndMonth(start, end) { let month; const result = []; const newResult = []; const starts = start.split('-'); const en
阅读全文
posted @ 2020-10-15 14:36 小蘑菇123
阅读(621)
评论(0)
推荐(0)
2020年9月29日
vue element-ui 隐藏上传按钮
摘要: 1、template: <div style="text-align: initial;margin-top: 20px;"> <el-upload :class="{hide:hideUpload}" action= '' list-type="picture-card" :auto-upload
阅读全文
posted @ 2020-09-29 14:35 小蘑菇123
阅读(3631)
评论(0)
推荐(0)
2020年9月24日
vue element 上传图片限制大小, before-upload 不生效问题
摘要: 1、template: <el-upload action= '' list-type="picture-card" :auto-upload="false" :show-file-list='true' :file-list="certificates" :on-preview="showimg"
阅读全文
posted @ 2020-09-24 17:01 小蘑菇123
阅读(2225)
评论(0)
推荐(0)
vue 滑块验证
摘要: 1、在登录页同级目录下,新建滑块验证页面 JcRange.vue: 2、JcRange.vue: <template> <div ref="dragVerify" class="drag_verify" :style="dragVerifyStyle" @mousemove="dragMoving"
阅读全文
posted @ 2020-09-24 09:59 小蘑菇123
阅读(672)
评论(3)
推荐(1)
2020年9月22日
vue 路由守卫,未登录强制跳转到登录页
摘要: main.js 中, // 挂载路由导航守卫 router.beforeEach((to, from, next) => { //获取token const hasToken = getToken(); // to 将要访问的路径 // from 代表从哪个路径跳转而来 // next 是一个函数,
阅读全文
posted @ 2020-09-22 15:26 小蘑菇123
阅读(3812)
评论(0)
推荐(0)
2020年9月18日
uni-app uCharts 双 y 轴展示
摘要: 1、获取后端返回过来的值: getweekData() { this.statistics_week = []; uni.request({ url: this.$url + '/homeInfo/weekData', header: { 'content-type': 'application/j
阅读全文
posted @ 2020-09-18 15:04 小蘑菇123
阅读(1205)
评论(0)
推荐(0)
2020年9月10日
vue 路由跳转未匹配相应路由后,出现空白页面,指向404页面
摘要: 1、比如我是写在根目录的: 2、点击跳转到没权限的路由(因为没权限,该路由找不到,显示空白页): 3、路由守卫如下: router.beforeEach((to, from, next) => { const hasToken = getToken(); // console.log(hasToke
阅读全文
posted @ 2020-09-10 17:59 小蘑菇123
阅读(2549)
评论(0)
推荐(0)
2020年9月9日
获取当前日期的年、月、日
摘要: 1、 let yy = new Date().getFullYear(); //获取年 let mm = new Date().getMonth() + 1; //获取月 let dd = new Date().getDate(); //获取日 if (mm >= 1 && mm <= 9) mm
阅读全文
posted @ 2020-09-09 10:58 小蘑菇123
阅读(466)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
20
下一页
公告