默认情况下before-upload返回的有一个默认参数file,如果在循环中,需要标识就需要添加一个自定义参数
:before-upload="function (file) { return handleBefore(file, index)}"
这样就可以在下面通过函数接收到自定义参数index
handleBefore(file, index) {}
默认情况下before-upload返回的有一个默认参数file,如果在循环中,需要标识就需要添加一个自定义参数
:before-upload="function (file) { return handleBefore(file, index)}"
这样就可以在下面通过函数接收到自定义参数index
handleBefore(file, index) {}