import { createApp } from 'vue'
import { createPinia } from 'pinia'
// Arco Design 组件 CSS 按需加载（sideEffect: true）
import './style.css'
import App from './App.vue'
import { useThemeStore } from './stores/theme'

const app = createApp(App)
const pinia = createPinia()

app.use(pinia)

// 在应用挂载前初始化主题（需要先初始化 Pinia）
const themeStore = useThemeStore()
themeStore.initTheme()

app.mount('#app')

