<script setup>
import { RouterView } from 'vue-router'
import { ref, onMounted } from 'vue'
import { theme } from 'ant-design-vue'
import SvgSprite from '@/components/icons/SvgSprite.vue'
import { useUserStore } from '@/stores/user'
import tokenManager from '@gold/utils/token-manager'

const themeToken = ref({
  token: {
    colorPrimary: '#3B82F6',
    colorInfo: '#2563EB',
    colorBgBase: '#F8FAFC',
    colorBgContainer: '#FFFFFF',
    colorTextBase: '#334155',
    colorTextSecondary: '#64748B',
    colorBorder: '#E2E8F0',
    borderRadius: 8,
  }
})

onMounted(async () => {})
</script>

<template>
  <a-config-provider :theme="themeToken">
    <SvgSprite />
    <RouterView />
  </a-config-provider>
</template>

<style>
/* 全局样式保持不变 */
.ant-btn{
    align-items: center;
    text-align: center;
    display: flex;
}
</style>
