import { createApp } from 'vue' import '@fortawesome/fontawesome-free/css/all.min.css' import App from './App.vue' import router from './router' import './styles/global.css' // hash 路由模式兜底:pathname 应恒为 / if (window.location.pathname !== '/' && window.location.hash) { window.history.replaceState({}, '', '/' + window.location.hash) } const app = createApp(App) app.use(router) app.mount('#app')