whychw
2020-10-13 457ef1dcf31868db3271a9502ee39756ed879a39
src/components/PageHeader.vue
@@ -26,7 +26,7 @@
        <div class="page-header-right">
            <div class="btn_grp">
                <div class="btn_3d" v-if="'/history' != $route.path" @click="showSettings">告警参数设置</div>
                <div class="btn_3d" @click="back">综合页面</div>
                <div class="btn_3d" v-if="!isApp" @click="back">综合页面</div>
            </div>
            <div class="page-header-time">{{time}}</div>
        </div>
@@ -44,7 +44,7 @@
<script>
import HomeTree from '../components/HomeTree'
const SEARCH = window.location.search;
export default {
    components: {
        HomeTree
@@ -67,6 +67,7 @@
                    txt: '历史监控'
                }
            ],
            isApp: true
        }
    },
    methods: {
@@ -111,6 +112,7 @@
    mounted(){
        // 启动时间计时器
        this.startInterval();
        this.isApp = SEARCH.indexOf('apptype') > -1;
    },
    destroyed() {
        clearInterval(this.interval);