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

View File

@@ -1891,8 +1891,8 @@ packages:
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
dependencies:
caniuse-lite: 1.0.30001568
electron-to-chromium: 1.4.610
caniuse-lite: 1.0.30001570
electron-to-chromium: 1.4.613
node-releases: 2.0.14
update-browserslist-db: 1.0.13(browserslist@4.22.2)
dev: true
@@ -1914,8 +1914,8 @@ packages:
set-function-length: 1.1.1
dev: true
/caniuse-lite@1.0.30001568:
resolution: {integrity: sha512-vSUkH84HontZJ88MiNrOau1EBrCqEQYgkC5gIySiDlpsm8sGVrhU7Kx4V6h0tnqaHzIHZv08HlJIwPbL4XL9+A==}
/caniuse-lite@1.0.30001570:
resolution: {integrity: sha512-+3e0ASu4sw1SWaoCtvPeyXp+5PsjigkSt8OXZbF9StH5pQWbxEjLAZE3n8Aup5udop1uRiKA7a4utUk/uoSpUw==}
dev: true
/chalk@2.4.2:
@@ -2080,8 +2080,8 @@ packages:
jake: 10.8.7
dev: true
/electron-to-chromium@1.4.610:
resolution: {integrity: sha512-mqi2oL1mfeHYtOdCxbPQYV/PL7YrQlxbvFEZ0Ee8GbDdShimqt2/S6z2RWqysuvlwdOrQdqvE0KZrBTipAeJzg==}
/electron-to-chromium@1.4.613:
resolution: {integrity: sha512-r4x5+FowKG6q+/Wj0W9nidx7QO31BJwmR2uEo+Qh3YLGQ8SbBAFuDFpTxzly/I2gsbrFwBuIjrMp423L3O5U3w==}
dev: true
/es-abstract@1.22.3:
@@ -2748,7 +2748,7 @@ packages:
highlight.js: 11.9.0
lodash: 4.17.21
lodash-es: 4.17.21
seemly: 0.3.7
seemly: 0.3.8
treemate: 0.3.11
vdirs: 0.1.8(vue@3.3.11)
vooks: 0.2.12(vue@3.3.11)
@@ -2968,8 +2968,8 @@ packages:
is-regex: 1.1.4
dev: true
/seemly@0.3.7:
resolution: {integrity: sha512-3KtXoeQzmcjtOZqkOs82+AsdhKybu14x4VeTy0iCRvVKHinMSsv63aGidDJpAqWoLSLJUM220Wi8gPfRLKZoTg==}
/seemly@0.3.8:
resolution: {integrity: sha512-MW8Qs6vbzo0pHmDpFSYPna+lwpZ6Zk1ancbajw/7E8TKtHdV+1DfZZD+kKJEhG/cAoB/i+LiT+5msZOqj0DwRA==}
dev: false
/select@1.1.2:
@@ -3414,7 +3414,7 @@ packages:
'@juggle/resize-observer': 3.4.0
css-render: 0.15.12
evtd: 0.2.4
seemly: 0.3.7
seemly: 0.3.8
vdirs: 0.1.8(vue@3.3.11)
vooks: 0.2.12(vue@3.3.11)
vue: 3.3.11

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 = [
{