diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/RechargeOrderController.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/RechargeOrderController.java index 314963ab7..9de506f87 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/RechargeOrderController.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/RechargeOrderController.java @@ -103,10 +103,9 @@ public class RechargeOrderController { @PreAuthorize("@ss.hasPermission('shop:recharge-order:query')") @TenantIgnore public CommonResult> getRechargeOrderPage(@Valid RechargeOrderPageReqVO pageVO) { - if(!TenantContextHolder.ID_SYSTEM.equals(TenantContextHolder.getRequiredTenantId())){ - pageVO.setTenantId(TenantContextHolder.getRequiredTenantId()); + if(!TenantContextHolder.ID_SYSTEM.equals(SecurityFrameworkUtils.getLoginUser().getTenantId())){ + pageVO.setTenantId(SecurityFrameworkUtils.getLoginUser().getTenantId()); } - pageVO.setTenantId(SecurityFrameworkUtils.getLoginUser().getTenantId()); PageResult pageResult = rechargeOrderService.getRechargeOrderPage(pageVO); return success(pageResult); } diff --git a/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/admin/user/AdminUserController.java b/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/admin/user/AdminUserController.java index 805da29f7..167adc7b7 100644 --- a/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/admin/user/AdminUserController.java +++ b/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/admin/user/AdminUserController.java @@ -4,6 +4,7 @@ import cn.binarywang.wx.miniapp.api.WxMaService; import cn.hutool.core.collection.CollUtil; import cn.iocoder.yudao.framework.common.pojo.CommonResult; import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils; import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore; import cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder; import cn.iocoder.yudao.module.member.controller.admin.user.dto.AdminUserQueryDTO; @@ -102,8 +103,8 @@ public class AdminUserController { @PreAuthorize("@ss.hasPermission('member:user:query')") @TenantIgnore public CommonResult> findPageList(@RequestBody AdminUserQueryDTO queryDTO) { - if(!TenantContextHolder.ID_SYSTEM.equals(TenantContextHolder.getRequiredTenantId())){ - queryDTO.setTenantId(TenantContextHolder.getRequiredTenantId()); + if(!TenantContextHolder.ID_SYSTEM.equals(SecurityFrameworkUtils.getLoginUser().getTenantId())){ + queryDTO.setTenantId(SecurityFrameworkUtils.getLoginUser().getTenantId()); } // 获得用户分页列表 PageResult pageResult = userService.findPageList(queryDTO); diff --git a/yudao-ui-admin/src/router/index.js b/yudao-ui-admin/src/router/index.js index 825b86844..af9c8d102 100644 --- a/yudao-ui-admin/src/router/index.js +++ b/yudao-ui-admin/src/router/index.js @@ -64,22 +64,17 @@ export const constantRoutes = [ component: (resolve) => require(['@/views/error/401'], resolve), hidden: true }, - // { - // path: '', - // component: Layout, - // redirect: 'index', - // children: [{ - // path: 'index', - // component: (resolve) => require(['@/views/index'], resolve), - // name: '首页', - // meta: {title: '首页', icon: 'dashboard', affix: true} - // } - // ] - // }, { - path:'/', - component: Layout, - redirect: '/product/store', + path: '', + component: Layout, + redirect: 'index', + children: [{ + path: 'index', + component: (resolve) => require(['@/views/index'], resolve), + name: '首页', + meta: {title: '首页', icon: 'dashboard', affix: true} + } + ] }, { path: '/user', diff --git a/yudao-ui-admin/src/views/index.vue b/yudao-ui-admin/src/views/index.vue index d2d2ec633..ad2206846 100644 --- a/yudao-ui-admin/src/views/index.vue +++ b/yudao-ui-admin/src/views/index.vue @@ -1,31 +1,31 @@