for example, when input is empty, an error message is no longer displayed on dom. What is going on?
<div class="am-form-group err-name" id="form">
<label for="doc-ipt-3" class="am-u-sm-2 am-form-label"><strong>*</strong>:</label>
<div class="am-u-sm-10">
<input type="text" @change="checkname" v-model="resourcesname" id="resourcesName" name="resourcesname">
<span class="err-plchod">{{errname}}</span>
</div>
</div>
var vm = new Vue({
el:"-sharpform",
data:{
url:"",
resourcesname:"",
sort:"",
errname:"",
masgurl:"",
masgsort:"",
isShow:false,
resourcesModular:{
"mk":"",
"gn":"",
"zy":"",
},
mydatas:[]
},
methods:{
checkname:function(){
if(this.resourcesname !=""){
this.errname ="";
}else{
this.errname = "";
}
},
}
});