fix [P-275]: используем базу урл
This commit is contained in:
1 parent
e9f36aa490
commit
f8b3c77ea1
1 file changed
+6
-4
@@ -10,7 +10,7 @@
|
|||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-img
|
<v-img
|
||||||
v-if="question.file"
|
v-if="question.file"
|
||||||
:src="`http://127.0.0.1:8000${question.file}`"
|
:src="`${baseURL.slice(0, -1)}${question.file}`"
|
||||||
class="w-50 mx-auto mb-4"
|
class="w-50 mx-auto mb-4"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<v-img
|
<v-img
|
||||||
v-if="option.file"
|
v-if="option.file"
|
||||||
:src="`http://127.0.0.1:8000${option.file}`"
|
:src="`${baseURL.slice(0, -1)}${option.file}`"
|
||||||
class="mb-4"
|
class="mb-4"
|
||||||
width="400"
|
width="400"
|
||||||
min-width="300"
|
min-width="300"
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<v-img
|
<v-img
|
||||||
v-if="option.file"
|
v-if="option.file"
|
||||||
:src="`http://127.0.0.1:8000${option.file}`"
|
:src="`${baseURL.slice(0, -1)}${option.file}`"
|
||||||
class="mb-4"
|
class="mb-4"
|
||||||
width="400"
|
width="400"
|
||||||
min-width="300"
|
min-width="300"
|
||||||
@@ -94,6 +94,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { computed, watch } from 'vue';
|
import { computed, watch } from 'vue';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
import { baseURL } from '@/utils/axios-api';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
@@ -123,7 +124,8 @@ export default {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
isMultipleChoice,
|
isMultipleChoice,
|
||||||
isPracticeMode
|
isPracticeMode,
|
||||||
|
baseURL
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
emits: ['change-question'],
|
emits: ['change-question'],
|
||||||
|
|||||||
Reference in new issue
Block a user