Merge branch 'master' of https://gitee.com/lvYeJu/lane-crawford-3
This commit is contained in:
13
src/main.ts
13
src/main.ts
@@ -5,15 +5,18 @@ import router from './router'
|
||||
import store from './stores/index'
|
||||
import 'normalize.css/normalize.css'
|
||||
import './assets/css/style.css'
|
||||
import SvgIcon from "@/components/SvgIcon/index.vue";
|
||||
import "virtual:svg-icons-register";
|
||||
|
||||
|
||||
import flexible from "./utils/flexible.js";
|
||||
|
||||
import './assets/main.css'
|
||||
import "./router/router-config" // 路由守卫,做动态路由的地方
|
||||
|
||||
var lastTouchEnd = 0;
|
||||
let lastTouchEnd = 0;
|
||||
document.addEventListener('touchend', function(event) {
|
||||
var now = (new Date()).getTime();
|
||||
const now = (new Date()).getTime();
|
||||
if (now - lastTouchEnd <= 300) {
|
||||
event.preventDefault();
|
||||
}
|
||||
@@ -22,7 +25,9 @@ document.addEventListener('touchend', function(event) {
|
||||
|
||||
const app = createApp(App)
|
||||
app.use(router)
|
||||
app.use(store)
|
||||
.use(store)
|
||||
.component("SvgIcon", SvgIcon)
|
||||
.mount('#app')
|
||||
|
||||
flexible();
|
||||
|
||||
app.mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user