|
|
@@ -54,7 +54,7 @@
|
|
|
<script>
|
|
|
import VideoCard from '@/components/card/VideoCard'
|
|
|
import SiteNotice from '@/components/card/SiteNotice'
|
|
|
-import { getHotVideo, videoRecommend } from '@/api/video'
|
|
|
+import { getBannerVideo, videoRecommend } from '@/api/video'
|
|
|
|
|
|
export default {
|
|
|
name: 'Index',
|
|
|
@@ -135,7 +135,7 @@ export default {
|
|
|
}, 1000)
|
|
|
},
|
|
|
getHotVideoWrapper() {
|
|
|
- getHotVideo().then(resp => {
|
|
|
+ getBannerVideo().then(resp => {
|
|
|
if (resp.code === 0) {
|
|
|
this.carouselList = resp.data
|
|
|
}
|
|
|
@@ -143,7 +143,7 @@ export default {
|
|
|
},
|
|
|
initServerSendEvent() {
|
|
|
if (typeof (EventSource) !== 'undefined') {
|
|
|
- const sseUrl = process.env.VUE_APP_SERVER_URL + '/api/data/video/hot'
|
|
|
+ const sseUrl = process.env.VUE_APP_SERVER_URL + '/api/data/video/banner'
|
|
|
const source = new EventSource(sseUrl)
|
|
|
source.addEventListener('test', function(e) {
|
|
|
console.log(e)
|