File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ import axios from 'axios'
163163import LoadingSpinner from ' ../components/LoadingSpinner.vue'
164164import QrcodeVue from ' qrcode.vue'
165165import Favicon from ' ../components/Favicon.vue'
166+ import { SHORT_BASE } from ' /src/composables/shortBase'
166167
167168const api = axios
168169
@@ -352,9 +353,9 @@ export default {
352353 buildDisplayShortUrl (code ) {
353354 if (! code) return ' '
354355 try {
355- return new URL (' /' + encodeURIComponent (String (code)), ' http://localhost:8080 ' ).href
356+ return new URL (' /' + encodeURIComponent (String (code)), SHORT_BASE ).href
356357 } catch {
357- return ' http://localhost:8080 /' + encodeURIComponent (String (code))
358+ return SHORT_BASE + ' /' + encodeURIComponent (String (code))
358359 }
359360 },
360361 displayShortUrl (item ) {
You can’t perform that action at this time.
0 commit comments