Commit a6dedbc9 by xuebiao

修复博客页面和问答页面标签的参数效验

parent 475571dc
......@@ -161,6 +161,8 @@
//参数判断
dataPostQuestion(){
console.log(this.tagList);
console.log(Array.from(this.tagList));
console.log(this.questionTitle.slice(this.questionTitle.length-1,this.questionTitle.length));
if(this.questionTitle===''
){
......@@ -179,7 +181,7 @@
});
return false;
}
if(this.tagList===''){
if(Array.from(this.tagList).length===0){
//this.$refs.tagIds.focus();
this.$refs.tagIds.handleShow();
this.$refs.tagIds.$refs.tag.focus();
......
......@@ -326,7 +326,7 @@ export default {
});
return false;
}
if (this.tagList.size === '') {
if (Array.from(this.tagList).length===0) {
this.$refs.tagIds.handleShow();
this.$refs.tagIds.$refs.tag.focus();
this.$message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment