diff --git a/src/components/Upload/src/UploadModal.vue b/src/components/Upload/src/UploadModal.vue index 18008421..fe399692 100644 --- a/src/components/Upload/src/UploadModal.vue +++ b/src/components/Upload/src/UploadModal.vue @@ -64,7 +64,7 @@ export default defineComponent({ components: { BasicModal, Upload, Alert, FileList }, props: basicProps, - emits: ['change'], + emits: ['change', 'register'], setup(props, { emit }) { const { t } = useI18n(); diff --git a/src/components/Upload/src/UploadPreviewModal.vue b/src/components/Upload/src/UploadPreviewModal.vue index 88b1b294..0cfc1267 100644 --- a/src/components/Upload/src/UploadPreviewModal.vue +++ b/src/components/Upload/src/UploadPreviewModal.vue @@ -27,7 +27,7 @@ export default defineComponent({ components: { BasicModal, FileList }, props: previewProps, - emits: ['list-change'], + emits: ['list-change', 'register'], setup(props, { emit }) { const [register, { closeModal }] = useModalInner(); const { t } = useI18n(); diff --git a/src/design/ant/btn.less b/src/design/ant/btn.less index d9545be9..3380f432 100644 --- a/src/design/ant/btn.less +++ b/src/design/ant/btn.less @@ -1,8 +1,8 @@ // button重置 .ant-btn { - display: inline-flex; - justify-content: center; - align-items: center; + // display: inline-flex; + // justify-content: center; + // align-items: center; // &.ant-btn-success:not(.ant-btn-link), // &.ant-btn-error:not(.ant-btn-link), // &.ant-btn-warning:not(.ant-btn-link), diff --git a/src/layouts/default/menu/index.tsx b/src/layouts/default/menu/index.tsx index e1f07949..f0a2817d 100644 --- a/src/layouts/default/menu/index.tsx +++ b/src/layouts/default/menu/index.tsx @@ -128,6 +128,7 @@ export default defineComponent({ function renderMenu() { const menus = unref(menusRef); + // console.log(menus); if (!menus || !menus.length) return null; return !props.isHorizontal ? ( { - // router.addRoute(RootRoute.name!, route as RouteRecordRaw); router.addRoute(route as RouteRecordRaw); }); diff --git a/src/router/menus/index.ts b/src/router/menus/index.ts index 5d12e8b0..940c4f1e 100644 --- a/src/router/menus/index.ts +++ b/src/router/menus/index.ts @@ -64,7 +64,6 @@ export async function getCurrentParentPath(currentPath: string) { export async function getShallowMenus(): Promise { const menus = await getAsyncMenus(); const routes = router.getRoutes(); - const shallowMenuList = menus.map((item) => ({ ...item, children: undefined })); return !isBackMode() ? shallowMenuList.filter(basicFilter(routes)) : shallowMenuList; } diff --git a/src/views/demo/comp/upload/index.vue b/src/views/demo/comp/upload/index.vue index d7ee62c4..94025ee0 100644 --- a/src/views/demo/comp/upload/index.vue +++ b/src/views/demo/comp/upload/index.vue @@ -1,11 +1,17 @@