fix: 优化中药开方功能
This commit is contained in:
@@ -6,7 +6,7 @@ export const LOGIN_PATH = '/auth/login';
|
||||
/**
|
||||
* @zh_CN 默认首页地址
|
||||
*/
|
||||
export const DEFAULT_HOME_PATH = '/analytics';
|
||||
export const DEFAULT_HOME_PATH = '/workspace';
|
||||
|
||||
export interface LanguageOption {
|
||||
label: string;
|
||||
|
||||
@@ -28,6 +28,8 @@ import { useMagicKeys, whenever } from '@vueuse/core';
|
||||
|
||||
import { LockScreenModal } from '../lock-screen';
|
||||
|
||||
import UpdatePasswordModal from '../../../../../../apps/web-antd/src/layouts/components/UpdatePasswordModal.vue'
|
||||
|
||||
interface Props {
|
||||
/**
|
||||
* 头像
|
||||
@@ -96,7 +98,6 @@ const [openPopover, hoverWatcher] = useHoverToggle(
|
||||
[refTrigger, refContent],
|
||||
() => props.hoverDelay,
|
||||
);
|
||||
|
||||
watch(
|
||||
() => props.trigger === 'hover' || props.trigger === 'both',
|
||||
(val) => {
|
||||
@@ -159,9 +160,17 @@ if (enableShortcutKey.value) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改密码弹窗
|
||||
*/
|
||||
const [UpdatePasswordModals, UpdatePasswordModalApi] = useVbenModal({
|
||||
connectedComponent: UpdatePasswordModal,
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UpdatePasswordModals />
|
||||
<LockModal
|
||||
v-if="preferences.widget.lockScreen"
|
||||
:avatar="avatar"
|
||||
@@ -218,6 +227,15 @@ if (enableShortcutKey.value) {
|
||||
</div>
|
||||
</DropdownMenuLabel>
|
||||
<DropdownMenuSeparator v-if="menus?.length" />
|
||||
<!-- 单独写一个修改密码 -->
|
||||
<DropdownMenuItem
|
||||
class="mx-1 flex cursor-pointer items-center rounded-sm py-1 leading-8"
|
||||
@click="UpdatePasswordModalApi.open()"
|
||||
>
|
||||
<VbenIcon icon="carbon:password" class="mr-2 size-4" />
|
||||
修改密码
|
||||
</DropdownMenuItem>
|
||||
<!-- 数组中的菜单(跳转) -->
|
||||
<DropdownMenuItem
|
||||
v-for="menu in menus"
|
||||
:key="menu.text"
|
||||
|
||||
Reference in New Issue
Block a user