feat:完善样式

This commit is contained in:
zjc
2025-03-05 19:59:23 +08:00
parent 21cb9b04ca
commit 5619c9ddfb
5 changed files with 73 additions and 30 deletions

View File

@@ -88,7 +88,6 @@
<script setup>
import countup from 'vue-countup-v3'
import map from '@/assets/images/map-img-1.jpg'
import pubSub from 'pubsub-js'
import { cloneDeep } from 'lodash'
@@ -97,15 +96,14 @@
let info = ref(null)
onMounted(() => {
hotelChange = PubSub.subscribe('hotelChange', (msg, data) => {
hotelChange = pubSub.subscribe('hotelChange', (msg, data) => {
let newData = cloneDeep(data)
newData.banner = newData.banner ? newData.banner.split(',') : []
info.value = newData
console.log(info.value, 'info.value')
})
})
onUnmounted(() => {
if (hotelChange) PubSub.unsubscribe(hotelChange)
if (hotelChange) pubSub.unsubscribe(hotelChange)
})
</script>