import { createApp } from 'vue'
import './style.scss'
import 'virtual:svg-icons-register'
import vConsole from 'vconsole'
import App from './App.vue'
import router from './router'
import 'vant/es/toast/style'

// 引入动画库
import 'animate.css'

// import VueWechatTitle from 'vue-wechat-title'

// // 基准大小
// const baseSize = 75
// function initRem() {
//   console.log(window.screen.availWidth)
//   const cale = window.screen.availWidth > 750 ? 2 : window.screen.availWidth / 375
//   window.document.documentElement.style.fontSize = `${baseSize * cale}px`
// }
// initRem()
// window.addEventListener('resize', () => {
//   initRem()
// })

// if (process.env.NODE_ENV !== 'prod')

// new vConsole()

const app = createApp(App)
app.use(router)
// app.use(VueWechatTitle)
app.mount('#app')
