|
@@ -14,7 +14,7 @@
|
|
|
v-for="(item, index) in relicInfo?.imgs"
|
|
|
:key="index"
|
|
|
class="swiper-slide"
|
|
|
- :src="'https://houseoss.4dkankan.com/project/yzdyh-h5/monument/' + item"
|
|
|
+ :src="`${$env.BASE_URL}data/${item}`"
|
|
|
alt=""
|
|
|
draggable="false"
|
|
|
>
|
|
@@ -39,7 +39,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { useRoute, useRouter } from "vue-router"
|
|
|
-import { computed, ref, onMounted, watch } from "vue"
|
|
|
+import { computed, ref, onMounted, watch, inject } from "vue"
|
|
|
import { useStore } from "vuex"
|
|
|
import Swiper from 'swiper/bundle'
|
|
|
import 'swiper/css/bundle'
|
|
@@ -49,6 +49,8 @@ const route = useRoute()
|
|
|
const router = useRouter()
|
|
|
const store = useStore()
|
|
|
|
|
|
+const $env = inject('$env')
|
|
|
+
|
|
|
const relicInfo = computed(() => {
|
|
|
return store.state.data?.list[route.query.unitIdx]?.list[route.query.relicIdx]
|
|
|
})
|