Browse Source

引入新的大屏效果

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

16
src/router/index.js

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