diff --git a/src/pages/src/components/layouts/MainBreadcrumbsDetails.vue b/src/pages/src/components/layouts/MainBreadcrumbsDetails.vue index b40e63b70..6551316e7 100644 --- a/src/pages/src/components/layouts/MainBreadcrumbsDetails.vue +++ b/src/pages/src/components/layouts/MainBreadcrumbsDetails.vue @@ -48,7 +48,9 @@ const handleBack = () => { const { back } = window.history.state; if (back) { router.go(-1); - store.customBreadcrumbs = false; + if (!window.changeInput) { + store.customBreadcrumbs = false; + } } else { const { matched } = route; const count = matched.length; diff --git a/src/pages/src/components/notify-editor/NotifyEditorTemplate.vue b/src/pages/src/components/notify-editor/NotifyEditorTemplate.vue index e7cad0ed4..657913b0f 100644 --- a/src/pages/src/components/notify-editor/NotifyEditorTemplate.vue +++ b/src/pages/src/components/notify-editor/NotifyEditorTemplate.vue @@ -174,7 +174,7 @@ const expiredSms = findMethodScene('sms', props.expiredSmsKey); diff --git a/src/pages/src/views/tenant/group-details/index.vue b/src/pages/src/views/tenant/group-details/index.vue index df4e44482..71904ce6c 100644 --- a/src/pages/src/views/tenant/group-details/index.vue +++ b/src/pages/src/views/tenant/group-details/index.vue @@ -115,6 +115,7 @@ import OperationDetails from './OperationDetails.vue'; import ViewDetails from './ViewDetails.vue'; import Empty from '@/components/Empty.vue'; +import { getDefaultConfig } from '@/http/dataSourceFiles'; import { getTenantDetails, getTenants, @@ -154,6 +155,7 @@ const state = reactive({ phone_country_code: '86', }, ], + password_initial_config: {}, }, }); const detailsConfig = reactive({ @@ -196,13 +198,7 @@ watch( phone_country_code: '86', }, ], - // password_settings: { - // init_password: "", - // init_password_method: "fixed_password", - // init_notify_method: [], - // init_sms_config: {}, - // init_mail_config: {}, - // }, + password_initial_config: {}, }; } }, @@ -215,9 +211,11 @@ const convertFormat = name => name?.map(item => item?.name).join(',') || '--'; const handleClick = async (type: string, item?: any) => { if (type !== 'add') { - await getTenantDetails(item.id).then((res: any) => { - state.tenantsData = res.data; - }); + const res = await getTenantDetails(item.id); + state.tenantsData = res.data; + } else { + const res = await getDefaultConfig('local'); + state.tenantsData.password_initial_config = res.data.config.password_initial; } detailsConfig.title = enumData[type].title; detailsConfig.type = enumData[type].type; @@ -366,6 +364,16 @@ const handleBeforeClose = async () => { :deep(.bk-modal-content) { height: calc(100vh - 106px); background: #f5f7fa; + + &::-webkit-scrollbar { + width: 4px; + background-color: transparent; + } + + &::-webkit-scrollbar-thumb { + background-color: #dcdee5; + border-radius: 4px; + } } }