2020-02-21
直接添加<el-upload发现点击不了,后来才知道,要加在<el-form-item></el-form-item>里面
2020-02-22
1、<template></template>必须以<div>为根,不能两个<div>并列作为根【<template><div></div><div></div></template>】。
2020-02-25
vue-router.esm.js?fe87:1981 Uncaught (in promise) TypeError: Cannot read property '__esModule' of undefined at isESModule (vue-router.esm.js?fe87:1981) at eval (vue-router.esm.js?fe87:1910) at eval (vue-router.esm.js?fe87:1996) at <anonymous>
原来写法
{ path: '/add_operate', name: 'add_operate', component: resolve => require(['@/views/operate/add']) }
正确写法
{ path: '/add_operate', name: 'add_operate', component: resolve => require(['@/views/operate/add'], resolve) }
2020-02-25
修改日期控件,发现上面显示的日期并没有改变。
以前的错误写法
this.ruleForm = { remark: this.addEditData.remark }; if(this.addEditData.purcharsDate!=null && this.addEditData.purcharsDate>0){ this.ruleForm["purcharsDate"] = this.$dateFormat(this.addEditData.purcharsDate, "yyyy/MM/dd") }//后插入
现在正确的写法:
var purcharsDate = ''; //alert(this.addEditData.purcharsDate); if(this.addEditData.purcharsDate!=null && this.addEditData.purcharsDate>0){ purcharsDate = this.$dateFormat(this.addEditData.purcharsDate, "yyyy/MM/dd") } this.ruleForm = { remark: this.addEditData.remark, purcharsDate: purcharsDate };//前插入