Nuxt reported an error 'disabled' of null' on the test server

clipboard.png
dom

      <el-form-item label=":" :label-width="formLabelWidth" prop="email">
        <el-input :disabled="emailDis" v-model="sideForm.email" auto-complete="off" placeholder=""></el-input>
        <span class="textDescr"></span>
      </el-form-item>
data{
 return {
     emailDis:true,
     sideForm:{
       email
     }
   }
}
mounted:function(){
  http.get("user/detail").then(function(res) {
     if (res.email == "") {
        this.emailDis = false;
     }
  });
}

is there a problem with my writing like this? It"s right locally. This error will be reported on the test server. Excuse me, what"s going on? thank you for waiting online.

Apr.19,2021

is the interface on the test server normal?

mounted:function(){
  http.get('user/detail').then(function(res) {
     if (res.email == "") {
        this.emailDis = false;
     }
  });
}

Local normal, there is a problem with the test environment. It means that there is no connection here, and the interface has been reported incorrectly.
take a look at console.log (res), is there any res.email

?
data{
 return {
     emailDis:true,
     sideForm:{
       email:''
     }
   }
}

the initial value is preferably in the form of key:value. If there is no value, use "

".
Menu