|
|
|
@ -71,6 +71,10 @@ function App() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 地接和客服权限不同,产品管理页面也不同
|
|
|
|
|
const isProductPermitted = isPermitted(PERM_PRODUCTS_MANAGEMENT) || isPermitted(PERM_PRODUCTS_INFO_PUT)
|
|
|
|
|
const productLink = isPermitted(PERM_PRODUCTS_MANAGEMENT) ? '/products' : '/products/edit'
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<ConfigProvider locale={antdLng}
|
|
|
|
|
theme={{
|
|
|
|
@ -110,8 +114,7 @@ function App() {
|
|
|
|
|
isPermitted(PERM_OVERSEA) ? { key: 'feedback', label: <Link to='/feedback'>{t('menu.Feedback')}</Link> } : null,
|
|
|
|
|
isPermitted(PERM_OVERSEA) ? { key: 'report', label: <Link to='/report'>{t('menu.Report')}</Link> } : null,
|
|
|
|
|
isPermitted(PERM_AIR_TICKET) ? { key: 'airticket', label: <Link to='/airticket'>{t('menu.Airticket')}</Link> } : null,
|
|
|
|
|
isPermitted(PERM_PRODUCTS_MANAGEMENT) ? { key: 'products', label: <Link to='/products'>{t('menu.Products')}</Link> } : null,
|
|
|
|
|
isPermitted(PERM_PRODUCTS_INFO_PUT) ? { key: 'products', label: <Link to='/products/edit'>{t('menu.Products')}</Link> } : null,
|
|
|
|
|
isProductPermitted ? { key: 'products', label: <Link to={productLink}>{t('menu.Products')}</Link> } : null,
|
|
|
|
|
{
|
|
|
|
|
key: 'notice',
|
|
|
|
|
label: (
|
|
|
|
|