发表于: 2020-03-13 22:14:08
1 1441
今天完成的事情:
1.推进任务
明天计划的事情:
1.推进任务
遇到的问题和收获:
if (this.article.type === '3') {
// console.log(this.article.industry);
console.log(111111);
return this.article.title === undefined
|| this.article.content === undefined
|| this.article.url === undefined
|| this.article.type === undefined
|| this.article.industry === undefined
// || this.fileList === [];
|| this.fileList.length === 0;
}else {
console.log(22222);
return this.article.title === undefined
|| this.article.content === undefined
|| this.article.url === undefined
|| this.article.type === undefined
// || this.fileList === [];
|| this.fileList.length === 0;
}
类型为0,1,2时,表单补全后可提交。为3时则需要填写后面一个选项的内容。
this.article.type === '3'
这个3之前没加引号,就出错了
还有一个地方没有加,就是进页面必须要先登录,未登录就跳转到登录页面
评论