<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'
  import zhCN from 'ant-design-vue/es/locale/zh_CN';
const themeToken = ref({

})

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

<template>
  <a-config-provider :theme="themeToken" :locale="zhCN">
    <SvgSprite />
    <keep-alive>
        <RouterView />
    </keep-alive>
  </a-config-provider>
</template>

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


.ant-select-selection-item,
.ant-select-selection-placeholder {
  line-height: 30px !important;
  color: var(--color-text) !important;
}
.ant-modal-confirm-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;

  .ant-btn {
    margin-left: 0 !important;
  }
}
.ant-select-focused .ant-select-selector {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1) !important;
}

.ant-select:hover .ant-select-selector {
  border-color: var(--color-primary) !important;
}

.ant-select-arrow {
  color: var(--color-text-secondary) !important;
}
.ant-modal .ant-modal-footer {
 display: flex;
 justify-content: end;
}
.ant-tooltip{
  z-index: 100
}
</style>
