Add to Editor
@@ -75,6 +75,8 @@ export default {
components: { Modal },
setup(props, { emit }) { //, { emit }) {
/* View Methods */
+ const imageUrl = image => 'http://localhost:8080' + image.url
+
const uploadFile = (e) => {
v.hover = false
emit('upload-error', null) // clear previous errors
@@ -243,7 +245,7 @@ export default {
watch(() => v.hover, a => a ? null : emit('hover-stop'))
- return { ...toRefs(v), uploadFile, fireDone }
+ return { ...toRefs(v), imageUrl, uploadFile, fireDone }
}
}