If the data IDs are different, and there are multiple identical name values or multiple identical Title values, an error will be reported
just do it
<a-auto-complete
v-model="ruleForm.companyId"
placeholder="Please Input"
optionLabelProp="label"
@select="onSelect"
@change="onChangeStore"
>
<template slot="dataSource">
<a-select-option
v-for="item in dataSource"
:key="item.id"
:value="item.id + ''"
:label="item.name"
>
{{ item.name }}
</a-select-option>
</template>
</a-auto-complete>
Read More:
- Vue solves the problem of repeated click navigation route error
- How to Solve Vue route jump repeated clicks Error
- [Vue error] the solution to the template root requires exactly one element error reporting
- Solve the problem of repeatedly clicking the same route console in Vue to report an error
- The solution to the problem that the custom styles of UI components such as element-ui in the vue project do not take effect
- [Solved] Error: postcss plugin autoprefixer requires postcss 8 error report problem repair
- [Vue warn]: Invalid prop: custom validator check failed for prop “index“
- [Solved] ✖ 2 problem (1 error, 0 warnings) 2 error and 0 warnings potentially fixable with the`–fix`
- Please transfer a valid prop path to form item
- [Solved] VUE D:\project\vueProject\vue-02\src\components\hello.vue 5:5 error Parsing error: x-invalid-end-tag
- [Solved] Cannot read properties of undefined (reading ‘propsData‘)“
- [Vue warn]: Error in mounted hook: “Error: please transfer a valid prop path to form item“
- [Solved] Element form method resetfields() error: vue.runtime.esm.js?2b0e:1888 TypeError: Cannot read properties of undefined (reading ‘indexOf’)
- How to Solve Error: [Vue warn]: Missing required prop: “value”
- How to Deal With the Error: ‘v-slot’ directive doesn’t support any modifier
- [Solved] Error in callback for watcher “value“: “TypeError: Cannot read property ‘level‘ of null“
- Use of error attribute in element UI (solution of triggering only once)
- [Solved] Vue3 Error: Failed to resolve component:xxx
- [Solved] Error in mounted hook: “Error: please transfer a valid prop
- [Solved] el-tree setCheckedNodes Error: undefined (reading setCheckedNodes)