fix
This commit is contained in:
32
src/main.ts
Normal file
32
src/main.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { createApp } from 'vue'
|
||||
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
// import ElementPlus from 'element-plus'
|
||||
import store from './stores/index'
|
||||
import 'normalize.css/normalize.css'
|
||||
import './assets/css/style.css'
|
||||
|
||||
import flexible from "./utils/flexible.js";
|
||||
|
||||
//引入element-plus相关样式
|
||||
import 'element-plus/dist/index.css'
|
||||
import './assets/main.css'
|
||||
import "./router/router-config" // 路由守卫,做动态路由的地方
|
||||
|
||||
var lastTouchEnd = 0;
|
||||
document.addEventListener('touchend', function(event) {
|
||||
var now = (new Date()).getTime();
|
||||
if (now - lastTouchEnd <= 300) {
|
||||
event.preventDefault();
|
||||
}
|
||||
lastTouchEnd = now;
|
||||
}, false);
|
||||
|
||||
const app = createApp(App)
|
||||
// app.use(ElementPlus)
|
||||
app.use(router)
|
||||
app.use(store)
|
||||
flexible();
|
||||
|
||||
app.mount('#app')
|
||||
Reference in New Issue
Block a user