perf(projects): manage menu: add transform to component

This commit is contained in:
Soybean
2024-03-22 01:31:38 +08:00
parent 71f2c5535b
commit 0abbfa5d0c
2 changed files with 24 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import { $t } from '@/locales';
import { enableStatusOptions, menuIconTypeOptions, menuTypeOptions } from '@/constants/business';
import SvgIcon from '@/components/custom/svg-icon.vue';
import { getLocalIcons } from '@/utils/icon';
import { getLayoutAndPage } from './shared';
import { getLayoutAndPage, transformLayoutAndPageToComponent } from './shared';
defineOptions({
name: 'MenuOperateDrawer'
@ -162,6 +162,9 @@ function closeDrawer() {
async function handleSubmit() {
await validate();
model.component = transformLayoutAndPageToComponent(model.layout, model.page);
// request
window.$message?.success($t('common.updateSuccess'));
closeDrawer();