|
@@ -172,6 +172,7 @@
|
172
|
172
|
</el-row>
|
173
|
173
|
<el-footer style="height: 41px;">
|
174
|
174
|
<el-button type="primary" class="footerBtn" @click="save">保存</el-button>
|
|
175
|
+ <el-button @click="resetForm('form')">重 置</el-button>
|
175
|
176
|
</el-footer>
|
176
|
177
|
</div>
|
177
|
178
|
</el-form>
|
|
@@ -330,8 +331,8 @@ export default {
|
330
|
331
|
this.imageUrl = URL.createObjectURL(file.raw);
|
331
|
332
|
},
|
332
|
333
|
resetForm(formName) {
|
333
|
|
- this.$refs[formName].resetFields();
|
334
|
|
- },
|
|
334
|
+ this.$refs[formName].resetFields();
|
|
335
|
+ },
|
335
|
336
|
beforeAvatarUpload (file) {
|
336
|
337
|
const isJPG = file.type === 'image/jpeg';
|
337
|
338
|
const isLt2M = file.size / 1024 / 1024 < 2;
|