| | |
| | | </div> |
| | | |
| | | <div class="border-l-d pl-6 pt-2"> |
| | | <h3 class="mb-2.5 text-base font-medium text-g-800">快速链接</h3> |
| | | <h3 class="mb-2.5 text-base font-medium text-g-800"> |
| | | {{ t('components.fastEnter.quickLinks') }} |
| | | </h3> |
| | | <ul> |
| | | <li |
| | | v-for="quickLink in enabledQuickLinks" |
| | |
| | | |
| | | <script setup> |
| | | import { useFastEnter } from '@/hooks/core/useFastEnter' |
| | | import { useI18n } from 'vue-i18n' |
| | | defineOptions({ name: 'ArtFastEnter' }) |
| | | const { t } = useI18n() |
| | | const router = useRouter() |
| | | const popoverRef = ref() |
| | | const { enabledApplications, enabledQuickLinks } = useFastEnter() |
| | | const handleNavigate = (routeName, link) => { |
| | | const targetPath = routeName || link |
| | | if (!targetPath) { |
| | | console.warn('导航配置无效:缺少路由名称或链接') |
| | | console.warn(t('components.fastEnter.invalidNavigation')) |
| | | return |
| | | } |
| | | if (targetPath.startsWith('http')) { |