2025-11-10 00:59:40 +08:00
|
|
|
<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'
|
2025-11-12 22:45:29 +08:00
|
|
|
import { useUserStore } from '@/stores/user'
|
2025-11-25 00:58:51 +08:00
|
|
|
import tokenManager from '@gold/utils/token-manager'
|
2026-01-18 02:35:41 +08:00
|
|
|
import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
2025-11-10 00:59:40 +08:00
|
|
|
const themeToken = ref({
|
2026-02-25 22:44:12 +08:00
|
|
|
|
2025-11-10 00:59:40 +08:00
|
|
|
})
|
|
|
|
|
|
2025-12-28 13:49:45 +08:00
|
|
|
onMounted(async () => {})
|
2025-11-10 00:59:40 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2026-01-18 02:35:41 +08:00
|
|
|
<a-config-provider :theme="themeToken" :locale="zhCN">
|
2025-11-25 01:24:12 +08:00
|
|
|
<SvgSprite />
|
2026-01-18 02:15:08 +08:00
|
|
|
<keep-alive>
|
|
|
|
|
<RouterView />
|
|
|
|
|
</keep-alive>
|
2025-11-10 00:59:40 +08:00
|
|
|
</a-config-provider>
|
|
|
|
|
</template>
|
|
|
|
|
|
2025-11-25 01:24:12 +08:00
|
|
|
<style>
|
|
|
|
|
/* 全局样式保持不变 */
|
2026-01-17 14:43:42 +08:00
|
|
|
.ant-btn{
|
|
|
|
|
align-items: center;
|
|
|
|
|
text-align: center;
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
2026-01-17 19:33:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-select-selection-item,
|
|
|
|
|
.ant-select-selection-placeholder {
|
|
|
|
|
line-height: 30px !important;
|
|
|
|
|
color: var(--color-text) !important;
|
|
|
|
|
}
|
2026-02-01 19:16:31 +08:00
|
|
|
.ant-modal-confirm-btns {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
gap: 8px;
|
2026-01-17 19:33:59 +08:00
|
|
|
|
2026-02-01 19:16:31 +08:00
|
|
|
.ant-btn {
|
|
|
|
|
margin-left: 0 !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-01-17 19:33:59 +08:00
|
|
|
.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;
|
2026-01-18 02:15:08 +08:00
|
|
|
justify-content: end;
|
2026-01-17 19:33:59 +08:00
|
|
|
}
|
2026-02-22 20:07:26 +08:00
|
|
|
.ant-tooltip{
|
|
|
|
|
z-index: 100
|
|
|
|
|
}
|
2025-11-10 00:59:40 +08:00
|
|
|
</style>
|