@@ -5,8 +5,11 @@ Vue.use(VueRouter)
const routes = [
{
- // path: '/live',
path: '/',
+ component: () => import( '../views/home/HomePage.vue')
+ },
+ {
+ path: '/live',
component: () => import( '../views/live/LiveItem.vue')
},
@@ -0,0 +1,25 @@
+<script>
+export default {
+ name: "HomePage"
+}
+</script>
+
+<template>
+ <div class="page">
+ <van-button type="primary" @click="$router.push('/live')">直播</van-button>
+ <van-button @click="$router.push('/feed')">点播</van-button>
+ </div>
+</template>
+<style scoped>
+.page {
+ height: 80vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ column-gap: 16px;
+ row-gap: 16px;
+</style>