接口更改
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getVideoListApi } from '@/api/home'
|
||||
import { getVideoListApi,getColletListApi } from '@/api/home'
|
||||
import { postVideoCollectApi } from '@/api/monitor'
|
||||
|
||||
import primary from '@/assets/images/item-primary.png'
|
||||
@@ -101,7 +101,7 @@
|
||||
getVideoList()
|
||||
}
|
||||
const getVideoList = async () => {
|
||||
let res = await getVideoListApi(params)
|
||||
let res = await getColletListApi(params)
|
||||
list.value = res.data
|
||||
total.value = res.total
|
||||
nextTick(() => {
|
||||
|
||||
@@ -244,7 +244,7 @@
|
||||
isBack.value = true
|
||||
let res = await getSpotListApi()
|
||||
navLeft.value = res.data
|
||||
console.log(res.data,'22220000')
|
||||
|
||||
current.value = res.data[0].id
|
||||
title.value = navLeft.value[current.value].name
|
||||
pubSub.publish('scenicChange', navLeft.value[0])
|
||||
@@ -281,10 +281,12 @@
|
||||
navLeft.value = [
|
||||
{
|
||||
name: '奉节县',
|
||||
scenicSpotId: ''
|
||||
scenicSpotId: '',
|
||||
id:10086,
|
||||
},
|
||||
...spotRes.data
|
||||
]
|
||||
current.value = navLeft.value[0].id
|
||||
break
|
||||
case '/sceneTesting':
|
||||
title.value = '三峡之巅-安全检测'
|
||||
|
||||
Reference in New Issue
Block a user