qinhouyu 2 years ago
parent
commit
2247ccc304
2 changed files with 17 additions and 0 deletions
  1. 1 0
      src/api/bigdata.js
  2. 16 0
      src/views/forest.vue

+ 1 - 0
src/api/bigdata.js

@@ -1,4 +1,5 @@
 import request from '@/utils/request'
+import Cookies from 'js-cookie'
 
 // 按状态统计分析隐患整改情况
 export function selectStatsMap(param) {

+ 16 - 0
src/views/forest.vue

@@ -464,6 +464,18 @@ export default {
     eventdetailsdialog,
     firespread
   },
+  metaInfo () {
+    return {
+      title:this.title,
+      meta:[{
+        charset: "utf-8"
+      },
+        {
+          name: "viewport",
+          content: "width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
+        }]
+    }
+  },
   created() {
     /** ----------------------------------底部按钮公用组件开始------------------------------------- */
     window.showDialog = this.showDialog
@@ -491,9 +503,13 @@ export default {
     // this.initWebSocket()
     /** ----------------------------------weosocket结束------------------------------------- */
     this.bottomMenuList() //获取底部公共组件消息和任务
+    setTimeout(() => {
+      this.title = '四平市态势感知平台'
+    }, 1000)
   },
   data() {
     return {
+      title:"",
       //警报MP3文件
       audioSrc: require('@/assets/jingbao.mp3'),