小编VIG*_*R R的帖子

为什么道具无效:道具“值”的类型检查失败。下面提到的程序需要字符串、数字、对象、布尔值、数组显示吗?

为什么道具无效:道具“值”的类型检查失败。下面提到的程序需要字符串、数字、对象、布尔值、数组显示吗?

html:

<model-select :options="usersAssignData"  v-model="userNameData" class="form-control col-sm-4" @keyup.native="getUser"  >
Run Code Online (Sandbox Code Playgroud)

脚本:

 getUser(e) { 
       console.log("idd",this.selectedZone)
        var user = e.target.value;
        axios.get("/helpdesk/getUsers", {
        params: {
          q: user,
          account_id: this.selectedZone,
          searchOption: 'username'
        },
          headers: {
            'Authorization': localStorage.getItem('token')
          }
        })
        .then(response => {
          this.usersAssignData = response.data

        })
        .catch(error => {
          reject(error);
          console.log(error);
        });
    }
Run Code Online (Sandbox Code Playgroud)

vue.js vue-component vuex vuejs2 vuetify.js

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

vue-component ×1

vue.js ×1

vuejs2 ×1

vuetify.js ×1

vuex ×1