diff --git a/src/layouts/pageLayouts/components/Sidebar/SidebarItem.vue b/src/layouts/pageLayouts/components/Sidebar/SidebarItem.vue index 899e5cd9..1f516bea 100644 --- a/src/layouts/pageLayouts/components/Sidebar/SidebarItem.vue +++ b/src/layouts/pageLayouts/components/Sidebar/SidebarItem.vue @@ -100,7 +100,8 @@ if (isExternal(props.basePath)) { return props.basePath; } - return `${props.basePath}/${routePath}`; + console.log(`${props.basePath} ${routePath}`); + return `${props.basePath}${routePath ? '/' + routePath : routePath}`; }; diff --git a/src/locales/en/modules/route.ts b/src/locales/en/modules/route.ts index 4c66537f..169ca35f 100644 --- a/src/locales/en/modules/route.ts +++ b/src/locales/en/modules/route.ts @@ -5,6 +5,7 @@ const route = { dragCpts: 'DragComponents', countTo: 'DigitalAnimation', form: 'Form', + seamlessScroll: 'SeamlessScroll', userInfo: 'UserInfo', userList: 'UserList', userDateil: 'UserDateil', diff --git a/src/locales/zh-ch/modules/route.ts b/src/locales/zh-ch/modules/route.ts index 1a576572..0a1ce34c 100644 --- a/src/locales/zh-ch/modules/route.ts +++ b/src/locales/zh-ch/modules/route.ts @@ -5,6 +5,7 @@ const route = { dragCpts: '拖拽组件', countTo: '数字动画', form: '表单', + seamlessScroll: '无限滚动', userInfo: '用户管理', userList: '用户列表', userDateil: '用户详情', diff --git a/src/router/modules/otherRoute/otherRoute.ts b/src/router/modules/otherRoute/otherRoute.ts index d6931db7..791abeb6 100644 --- a/src/router/modules/otherRoute/otherRoute.ts +++ b/src/router/modules/otherRoute/otherRoute.ts @@ -50,6 +50,12 @@ const safeManagerRoutes: Array = [ component: () => import('@/views/components/form/index.vue'), meta: { title: t('route.pathName.form') }, }, + { + path: 'seamless-scroll', + name: 'RtSeamlessScroll', + component: () => import('@/views/components/seamless-scroll/index.vue'), + meta: { title: t('route.pathName.seamlessScroll') }, + }, ], }, { diff --git a/src/views/components/seamless-scroll/index.vue b/src/views/components/seamless-scroll/index.vue new file mode 100644 index 00000000..4769f7b3 --- /dev/null +++ b/src/views/components/seamless-scroll/index.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/src/views/useradmin/userlist/index.vue b/src/views/useradmin/userlist/index.vue index 863cd0e6..1204a87d 100644 --- a/src/views/useradmin/userlist/index.vue +++ b/src/views/useradmin/userlist/index.vue @@ -2,6 +2,7 @@
听说这个是用户列表 +