@@ -23,6 +23,7 @@ export const Retailer: AppRouteRecordRaw = {
meta: {
title: t('routes.dashboard.retailer'),
hideBreadcrumb: true,
+ roles: [RoleEnum.SUPER],
// icon: 'codicon:device-camera',
},
@@ -197,7 +197,7 @@
resetFields();
updateSchema({
field: 'userName',
- show: false,
+ show: data.id?false:true,
})
setFieldsValue({
...data,