fix: menu (#44)

This commit is contained in:
Dream Hunter
2023-12-15 13:27:55 +08:00
committed by GitHub
parent c5ea19bc07
commit c9466edf43
2 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
import { NGrid, NLayoutHeader, NInput } from 'naive-ui'
import { NButton, NSelect, NModal, NIcon, NMenu } from 'naive-ui'
import { NSwitch, NPopconfirm } from 'naive-ui'
import { ref, h } from 'vue'
import { ref, h, computed } from 'vue'
import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
import { useIsMobile } from '../utils/composables'
@@ -73,7 +73,7 @@ const { t } = useI18n({
});
const menuOptions = [
const menuOptions = computed(() => [
{
label: () => h(
NButton,
@@ -132,7 +132,7 @@ const menuOptions = [
show: !!jwt.value,
key: "logout"
}
];
]);
const menuOptionsMobile = [
{