seimin 3 years ago
parent
commit
d9a26f2906
3 changed files with 10 additions and 1 deletions
  1. BIN
      public/favicon.ico
  2. 9 0
      src/router/index.js
  3. 1 1
      vue.config.js

BIN
public/favicon.ico


+ 9 - 0
src/router/index.js

@@ -6,11 +6,20 @@ Vue.use(VueRouter)
6 6
 const routes = [{
7 7
   path: '/:id',
8 8
   name: 'index',
9
+  meta: {
10
+    title: '大屏端'
11
+  },
9 12
   component: () => import('../views/AppIndex.vue')
10 13
 }]
11 14
 
12 15
 const router = new VueRouter({
13 16
   routes
14 17
 })
18
+router.beforeEach((to, from, next) => {
19
+  if (to.meta.title) {
20
+    document.title = document.title = to.meta.title + ' - 大势医院输送保障管理平台'
21
+  }
22
+  next()
23
+})
15 24
 
16 25
 export default router

+ 1 - 1
vue.config.js

@@ -4,7 +4,7 @@ module.exports = {
4 4
   productionSourceMap: false,
5 5
   devServer: {
6 6
     open: false, // 是否自动弹出浏览器页面
7
-    host: 'localhost',
7
+    host: '0.0.0.0',
8 8
     port: '8080',
9 9
     https: false, // 是否使用https协议
10 10
     hotOnly: false, // 是否开启热更新