文件大小限制為10M const fileLimit = file.size / 1024 / 1024 < 10; if(!fileLimit) { this.$message.error('上傳文件大小不超過10M!
確定! 回上一頁