[Vue warn]: Missing required prop: “action“
控制台显示错误信息
vue.runtime.esm.js:4605 [Vue warn]: Missing required prop: "action"
found in
---> <ElUpload> at packages/upload/src/index.vue
<ElTableRow>
<ElTableBody>
<ElTable> at packages/table/src/table.vue
<TableList> at src/components/TableList/index.vue
<DetailInfo> at src/components/creditTicketComponents/detailInfo.vue
<Detail> at src/views/offlineSupllyAmountBusinessRegisterQuery/detail.vue
<AppMain> at src/layout/components/AppMain.vue
<Layout> at src/layout/index.vue
<App> at src/App.vue
<Root>
错误翻译
缺少必要的属性action
查看element官网
属于必传属性
错误组件代码
<el-uploadclass="el-upload"style="display: inline-block"ref="clearUp":limit="1":show-file-list="false":on-change="handleChangeEntrustFile":http-request="(file) => { return httpRequest1(file, scope.row);}">
正确代码增加action属性
<el-uploadclass="el-upload"style="display: inline-block"ref="clearUp"action="#":limit="1":show-file-list="false":on-change="handleChangeEntrustFile":http-request="(file) => { return httpRequest1(file, scope.row);}">