摘要: router.beforeEach((to, from, next) => { let isLogin = window.sessionStorage.getItem('loginUserNameKey'); if (isLogin) { //如果用户信息存在则往下执行。 next() } else 阅读全文
posted @ 2019-04-26 15:15 丁丶丁 阅读(2402) 评论(0) 推荐(1) 编辑
摘要: 第一步:npm install -save babel-polyfill 第二步:import 'babel-polyfill' 第三步:入口配置 webpack.base.conf.js entry: { app: ['babel-polyfill','./src/main.js'] }, ent 阅读全文
posted @ 2019-04-24 10:55 丁丶丁 阅读(1282) 评论(0) 推荐(0) 编辑
摘要: ruleValidate: { userName: [ { required: true, message: "用户名不能为空", trigger: "blur" }, { type: "string", pattern: /^[0-9a-zA-Z]*$/g, message: "用户名只能是英文或 阅读全文
posted @ 2019-03-28 11:30 丁丶丁 阅读(604) 评论(0) 推荐(0) 编辑
摘要: title: '标题', ellipsis: true, align: 'left', key: 'Subject', render: (h, params) => { return h('Tooltip', { props: { placement: 'top' } }, [ params.row 阅读全文
posted @ 2019-01-22 22:26 丁丶丁 阅读(878) 评论(0) 推荐(0) 编辑
摘要: 强制刷新就好 deactivated(){ this.$destroy(true) } 阅读全文
posted @ 2019-01-21 20:56 丁丶丁 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 设置v-show 元素被隐藏,切换的时候echart 获取不到父元素高度,改v-if就可以了 阅读全文
posted @ 2019-01-14 16:59 丁丶丁 阅读(1025) 评论(0) 推荐(0) 编辑
摘要: errorImg01: 'this.src="' + require('@/images/Bitmap.png') + '"', <img class="Bitmap" :datafld="popContent.profilePhotoUrl" title="上传头像" :src="imgBaseU 阅读全文
posted @ 2018-12-25 20:35 丁丶丁 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 方法一:包装数据上传 方法二 直接上传 阅读全文
posted @ 2018-10-12 11:07 丁丶丁 阅读(779) 评论(0) 推荐(0) 编辑
摘要: 第一步:抽离拦截器,建立单独文件,便于维护建立axios.js 第二部 编写代码 第三部,配置文件 阅读全文
posted @ 2018-09-13 09:27 丁丶丁 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 第一、准备需要的素材SVG图片, 第二、https://icomoon.io/app/#/select 按要求去操作就可以了 阅读全文
posted @ 2018-09-13 08:55 丁丶丁 阅读(130) 评论(0) 推荐(0) 编辑