Browse Source

引入新的大屏效果

lite
xyiege 2 years ago
parent
commit
d9fc8688cc
  1. 2
      public/index.html
  2. 16
      src/router/index.js
  3. 4
      src/views/ty/index.vue

2
public/index.html

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<title>宝安区公共文化体育服务中心智慧显示屏</title>
</head>
<body>
<noscript>

16
src/router/index.js

@ -3,11 +3,23 @@ import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [{
const routes = [
// 首屏
{
path: '/',
name: 'index',
component: () => import('../views/index.vue')
}]
},
// 体育
{
path: '/ty',
name: 'ty',
component: ()=>import("../views/ty/index.vue")
}
]
const router = new VueRouter({
mode: "history",
routes

4
src/views/ty/index.vue

@ -0,0 +1,4 @@
<template>
<dv-full-screen-container>content</dv-full-screen-container>
</template>
Loading…
Cancel
Save