Skip to content

Commit a1bbd39

Browse files
committed
fix: change port in media
1 parent ab8db7b commit a1bbd39

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

coreui/public/public/test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test

coreui/src/views/media/Media.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ export default {
255255
croppModal: false,
256256
cropper: null,
257257
croppUrl: '',
258+
changePort: 'localhost:8080',
258259
}
259260
},
260261
computed: {
@@ -290,7 +291,7 @@ export default {
290291
.then(function (response) {
291292
self.elementId = response.data.id
292293
self.croppUrl = response.data.url
293-
self.croppUrl = self.croppUrl.replace( 'localhost', this.$apiAdress )
294+
self.croppUrl = self.croppUrl.replace( 'localhost', self.changePort )
294295
document.getElementById('cropp-img-img').setAttribute('src', self.croppUrl)
295296
self.croppModal = true
296297

0 commit comments

Comments
 (0)