zhaoxiaoqiang
2022-08-05 1aabe35193870f66acae5013fb10003a5bb16b96
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
 * @Descripttion: 修改配置
 * @Author: TM丶
 * @Date: 2019-08-14 14:05:51
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-10-28 15:20:31
 */
 
 
import Vue from 'vue';
import 'element-ui/lib/theme-chalk/index.css';
import { Select } from 'element-ui'
import Validator from '@/utils/formValidator';
import vantRegister from '@/components/validator/validator' 
 
import store from "@/store/index";
import router from "@/router/index";
import App from "./App.vue";
import api from "@/api"; //接口
import filters from '@/utils/filters';
// import Vant from 'vant'
// import 'vant/lib/vant-css/index.css'
 
import androidBack from './utils/pageBackByAndroid';
Vue.config.productionTip = false; // 关闭生产的提示
 
 
import "@/style/normalize.less";
import "@/style/common.less";
 
 
Vue.use(api)
Vue.use(filters)
Vue.use(Validator)
Vue.use(vantRegister)
Vue.use(Select)
// Vue.use(Vant)
 
 
new Vue({
    store,
    router,
    mounted() {
        var u = navigator.userAgent;
        if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) {
            window.addEventListener("resize", function() {
                let el = document.activeElement;
                if(el.tagName=="INPUT" || el.tagName=="TEXTAREA") {
                    window.setTimeout(function() {
                        el.scrollIntoView({
                            behavior:'smooth',
                        });
                    },16.7);
                }
            })
        }
    },
    render: h => h(App)
}).$mount("#app")
 
androidBack.androidBackBtn();