import '@/assets/style/main.css'
import { createApp } from 'vue'
import App from './App.vue'
import { setupRouter } from '@/router'
// import { setupAuthRoutes } from './router/before'
import { createPinia } from 'pinia'

const pinia = createPinia()
// 创建实例
const setupAll = async () => {
  const app = createApp(App)
  setupRouter(app)
  // setupAuthRoutes()
  app.use(pinia)
  app.mount('#app')
}

setupAll()
