<template>
    <div id="app">
        <mta-transform>
            <router-view />
        </mta-transform>
        <st-formula-dialog></st-formula-dialog>
    </div>
</template>

<script>
    import MtaTransform        from '@/components/management/Transform';
    import StFormulaDialog     from '@/components/custom/StFormulaDialog';
    import * as Initialization from '@/utils/initializationConfig';

    export default {
        name:       'App',
        components: {
            MtaTransform,
            StFormulaDialog,
            // globalUploader,
        },
        //监测路由变化，滚动条置于最上方
        watch: {
            $route: function(to, from) {
                document.body.scrollTop = 0;
                document.documentElement.scrollTop = 0;
            }
        },
        created() {
            // 初始化 页面标签meta ico图标
            Initialization.initializationPageConfig();
        },
    };
</script>
<style lang="scss">
    /*@import "./assets/css/main/main-z.scss";*/

    #app {
        font-family: "Helvetica Neue", Helvetica, Arial, "微软雅黑", sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        color: #2C3E50;
        display: flex;
        align-content: center;
        min-width: 1240px;
    }

    html, body {
        margin: 0;
        padding: 0;
    }
</style>
