fix: change base url
This commit is contained in:
1 parent
ac21935936
commit
02a102ce78
2 files changed
+3
-3
No files matched your search
@@ -16,7 +16,7 @@
|
||||
<v-card v-for="cardValue in searchTest" :key="cardValue.id" class="my-2 border-sm">
|
||||
<v-row class="pa-2">
|
||||
<v-col cols="1">
|
||||
<v-img height="125" :src="`${baseURL.slice(0, -1)}` + cardValue.file" />
|
||||
<v-img height="125" :src="cardValue.file" />
|
||||
</v-col>
|
||||
<v-col cols="auto" class="d-flex flex-grow-1">
|
||||
<div class="d-flex flex-column justify-center flex-grow-1">
|
||||
|
||||
@@ -66,8 +66,8 @@ export default {
|
||||
|
||||
const getTestById = () => {
|
||||
|
||||
let status = activeTab.value == 0 ? '?status=active' : activeTab.value == 1 ? '?status=completed' : ''
|
||||
axiosApiInstance.get(`/api/tests/testlistcreate/${status}`).then(resp => getAllTests.value = resp.data).finally(() => {
|
||||
// let status = activeTab.value == 0 ? '?status=active' : activeTab.value == 1 ? '?status=completed' : ''
|
||||
axiosApiInstance.get(`/api/tests/testlistcreate`).then(resp => getAllTests.value = resp.data.results).finally(() => {
|
||||
if (activeTab.value == 0) {
|
||||
currentTest.value = getAllTests.value.length
|
||||
}})
|
||||
|
||||
Reference in new issue
Block a user