mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 09:56:44 +08:00
提交更改
This commit is contained in:
19
src/main.js
19
src/main.js
@@ -11,7 +11,12 @@ import config from '@/config'
|
||||
import noMoreClick from '@/directive/noMoreClick'
|
||||
|
||||
//全局注册vant常用组件
|
||||
import { Toast, Button, Dialog, Icon } from 'vant'
|
||||
import {
|
||||
Toast,
|
||||
Button,
|
||||
Dialog,
|
||||
Icon
|
||||
} from 'vant'
|
||||
|
||||
Vue.use(Icon)
|
||||
|
||||
@@ -25,7 +30,7 @@ Vue.directive('no-more-click', noMoreClick)
|
||||
//解决ios移动端input调软键盘问题
|
||||
let isIphone = navigator.userAgent.indexOf('iPhone') != -1
|
||||
if (isIphone) {
|
||||
FastClick.prototype.focus = function(targetElement) {
|
||||
FastClick.prototype.focus = function (targetElement) {
|
||||
let length
|
||||
if (
|
||||
isIphone &&
|
||||
@@ -65,14 +70,18 @@ if (process.env.VUE_APP_FLAG != 'prd') {
|
||||
// Vue.prototype.$rootUrl = location.origin + '/ebiz-h5'
|
||||
Vue.config.devtools = true
|
||||
}
|
||||
// let Eruda = require('eruda')
|
||||
// Eruda.init()
|
||||
|
||||
// 注册过滤器
|
||||
Object.keys(Filters).forEach(function(k) {
|
||||
Object.keys(Filters).forEach(function (k) {
|
||||
Vue.filter(k, Filters[k])
|
||||
})
|
||||
|
||||
//权限控制
|
||||
import { permission } from '@/assets/js/utils/permission'
|
||||
import {
|
||||
permission
|
||||
} from '@/assets/js/utils/permission'
|
||||
permission()
|
||||
|
||||
//ios点击300毫秒时延
|
||||
@@ -83,4 +92,4 @@ new Vue({
|
||||
router,
|
||||
store,
|
||||
render: h => h(App)
|
||||
}).$mount('#app')
|
||||
}).$mount('#app')
|
||||
Reference in New Issue
Block a user