fix(dashboard): use correctly intercepted axios in VerticalHeader.vue to respect API base url

This commit is contained in:
LIghtJUNction
2026-04-04 18:11:55 +08:00
parent 5012475c29
commit 3b8a77b053

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { ref, computed, watch, onMounted } from 'vue';
import { useCustomizerStore } from '@/stores/customizer';
import axios from 'axios';
import axios from '@/utils/request';
import Logo from '@/components/shared/Logo.vue';
import { useAuthStore } from '@/stores/auth';
import { useCommonStore } from '@/stores/common';
@@ -513,7 +513,7 @@ const isChristmas = computed(() => {
// 语言切换相关
const { languageOptions, currentLanguage, switchLanguage, locale } = useLanguageSwitcher();
const languages = computed(() =>
const languages = computed(() =>
languageOptions.value.map(lang => ({
code: lang.value,
name: lang.label,
@@ -593,7 +593,7 @@ onMounted(async () => {
{{ t('core.header.version.dashboardHasNewVersion') }}
</small>
</div>
<!-- Bot/Chat 模式切换按钮 - 手机端隐藏移入 ... 菜单 -->
<v-btn-toggle
v-model="currentMode"