This commit is contained in:
zhangyh
2025-10-09 11:48:56 +08:00
21 changed files with 5981 additions and 855 deletions

View File

@@ -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')