Commit 9e94ef6b authored by wanli's avatar wanli

update

parent 1edfa1df
...@@ -152,6 +152,7 @@ ...@@ -152,6 +152,7 @@
<el-form-item label="应用Logo" prop="app_icon"> <el-form-item label="应用Logo" prop="app_icon">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
ref="icon"
:action="`${window.location.protocol}//${window.location.host}/api/v1/evm_store/upload`" :action="`${window.location.protocol}//${window.location.host}/api/v1/evm_store/upload`"
name="binfile" name="binfile"
:on-remove="handleAvatarRemove" :on-remove="handleAvatarRemove"
...@@ -295,8 +296,11 @@ export default { ...@@ -295,8 +296,11 @@ export default {
}, },
methods: { methods: {
clear() { clear() {
this.imageUrl = null;
this.post.app_icon = null;
this.post.app_files = []; this.post.app_files = [];
this.$refs.upload.clearFiles(); this.$refs.upload.clearFiles();
this.$refs.icon.clearFiles();
}, },
fetchData(params) { fetchData(params) {
this.isLoading = true; this.isLoading = true;
...@@ -449,6 +453,9 @@ export default { ...@@ -449,6 +453,9 @@ export default {
this.frameworkDialog = true; this.frameworkDialog = true;
}, },
onAdd() { onAdd() {
setTimeout(() => {
this.clear();
}, 100);
this.dialogTitle = "添加"; this.dialogTitle = "添加";
this.dialogVisible = true; this.dialogVisible = true;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment