mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 22:29:19 +08:00
fix: 修复切换账户图标SwapHoriz不存在的问题,改用lucide:arrow-left-right
This commit is contained in:
@@ -6,7 +6,8 @@ import { computed, onMounted, ref, watch } from 'vue';
|
|||||||
import { AuthenticationLoginExpiredModal } from '@vben/common-ui';
|
import { AuthenticationLoginExpiredModal } from '@vben/common-ui';
|
||||||
import { VBEN_DOC_URL, VBEN_GITHUB_URL } from '@vben/constants';
|
import { VBEN_DOC_URL, VBEN_GITHUB_URL } from '@vben/constants';
|
||||||
import { useWatermark } from '@vben/hooks';
|
import { useWatermark } from '@vben/hooks';
|
||||||
import { SwapHoriz, MdiGithub } from '@vben/icons';
|
import { MdiGithub } from '@vben/icons';
|
||||||
|
import { createIconifyIcon } from '@vben/icons';
|
||||||
import {
|
import {
|
||||||
BasicLayout,
|
BasicLayout,
|
||||||
LockScreen,
|
LockScreen,
|
||||||
@@ -71,6 +72,9 @@ onMounted(() => {
|
|||||||
// 切换账户模态框引用
|
// 切换账户模态框引用
|
||||||
const switchAccountModalRef = ref();
|
const switchAccountModalRef = ref();
|
||||||
|
|
||||||
|
// 切换账户图标
|
||||||
|
const SwitchAccountIcon = createIconifyIcon('lucide:arrow-left-right');
|
||||||
|
|
||||||
const menus = computed(() => {
|
const menus = computed(() => {
|
||||||
const menuItems = [];
|
const menuItems = [];
|
||||||
|
|
||||||
@@ -80,7 +84,7 @@ const menus = computed(() => {
|
|||||||
handler: () => {
|
handler: () => {
|
||||||
switchAccountModalRef.value?.open();
|
switchAccountModalRef.value?.open();
|
||||||
},
|
},
|
||||||
icon: SwapHoriz,
|
icon: SwitchAccountIcon,
|
||||||
text: '切换账户',
|
text: '切换账户',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user