seimin %!s(int64=4) %!d(string=hai) anos
pai
achega
d9a26f2906
Modificáronse 3 ficheiros con 10 adicións e 1 borrados
  1. BIN=BIN
      public/favicon.ico
  2. 9 0
      src/router/index.js
  3. 1 1
      vue.config.js

BIN=BIN
public/favicon.ico


+ 9 - 0
src/router/index.js

@@ -6,11 +6,20 @@ Vue.use(VueRouter)
6
 const routes = [{
6
 const routes = [{
7
   path: '/:id',
7
   path: '/:id',
8
   name: 'index',
8
   name: 'index',
9
+  meta: {
10
+    title: '大屏端'
11
+  },
9
   component: () => import('../views/AppIndex.vue')
12
   component: () => import('../views/AppIndex.vue')
10
 }]
13
 }]
11
 
14
 
12
 const router = new VueRouter({
15
 const router = new VueRouter({
13
   routes
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
 export default router
25
 export default router

+ 1 - 1
vue.config.js

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