|
@@ -26,6 +26,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import _ from 'lodash';
|
|
import _ from 'lodash';
|
|
|
|
+import { createLogger } from 'vuex';
|
|
export default {
|
|
export default {
|
|
name: 'c-upload',
|
|
name: 'c-upload',
|
|
props: {
|
|
props: {
|
|
@@ -75,7 +76,7 @@ export default {
|
|
if (_.isArray(list)) {
|
|
if (_.isArray(list)) {
|
|
list.push({ ...response, name: file.name, url: `${process.env.VUE_APP_HOST}/${response.uri}` });
|
|
list.push({ ...response, name: file.name, url: `${process.env.VUE_APP_HOST}/${response.uri}` });
|
|
} else {
|
|
} else {
|
|
- list = [{ ...response, name: file.name }];
|
|
|
|
|
|
+ list = [{ ...response, name: file.name, url: `${process.env.VUE_APP_HOST}/${response.uri}` }];
|
|
}
|
|
}
|
|
this.$emit('change', list);
|
|
this.$emit('change', list);
|
|
},
|
|
},
|