正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
| @@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
| 24 | <br /> | 24 | <br /> |
| 25 | <el-row> | 25 | <el-row> |
| 26 | <el-col :lg="2" :md="2"> | 26 | <el-col :lg="2" :md="2"> |
| 27 | - <el-upload :show-file-list="false" :before-upload="beforeUpload"> | 27 | + <el-upload action="#" :http-request="requestUpload" :show-file-list="false" :before-upload="beforeUpload"> |
| 28 | <el-button size="small"> | 28 | <el-button size="small"> |
| 29 | 上传 | 29 | 上传 |
| 30 | <i class="el-icon-upload el-icon--right"></i> | 30 | <i class="el-icon-upload el-icon--right"></i> |
| @@ -44,7 +44,7 @@ | @@ -44,7 +44,7 @@ | ||
| 44 | <el-button icon="el-icon-refresh-right" size="small" @click="rotateRight()"></el-button> | 44 | <el-button icon="el-icon-refresh-right" size="small" @click="rotateRight()"></el-button> |
| 45 | </el-col> | 45 | </el-col> |
| 46 | <el-col :lg="{span: 2, offset: 6}" :md="2"> | 46 | <el-col :lg="{span: 2, offset: 6}" :md="2"> |
| 47 | - <el-button type="primary" size="small" @click="uploadImg()">上 传</el-button> | 47 | + <el-button type="primary" size="small" @click="uploadImg()">提 交</el-button> |
| 48 | </el-col> | 48 | </el-col> |
| 49 | </el-row> | 49 | </el-row> |
| 50 | </el-dialog> | 50 | </el-dialog> |
| @@ -84,6 +84,9 @@ export default { | @@ -84,6 +84,9 @@ export default { | ||
| 84 | editCropper() { | 84 | editCropper() { |
| 85 | this.open = true; | 85 | this.open = true; |
| 86 | }, | 86 | }, |
| 87 | + // 覆盖默认的上传行为 | ||
| 88 | + requestUpload() { | ||
| 89 | + }, | ||
| 87 | // 向左旋转 | 90 | // 向左旋转 |
| 88 | rotateLeft() { | 91 | rotateLeft() { |
| 89 | this.$refs.cropper.rotateLeft(); | 92 | this.$refs.cropper.rotateLeft(); |
-
请 注册 或 登录 后发表评论