Fix: 调整代码结构
This commit is contained in:
@ -160,10 +160,8 @@
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { navigationConfig } from '@/config/navigation'
|
||||
import { useNavigationStore } from '@/stores/navigation'
|
||||
import { useRoute } from 'vue-router'
|
||||
|
||||
const { t, locale } = useI18n()
|
||||
const route = useRoute()
|
||||
|
||||
const navigationStore = useNavigationStore()
|
||||
|
||||
@ -270,7 +268,7 @@
|
||||
locale.value = locale.value === 'zh' ? 'en' : 'zh'
|
||||
}
|
||||
|
||||
function handleSelect (index: number) {
|
||||
function handleSelect (_index: number) {
|
||||
drawer.value = false // 选择后自动关闭抽屉
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user