1405/02/14-add giftCards
This commit is contained in:
Vendored
-3
@@ -15,7 +15,6 @@ declare module '@vue/runtime-core' {
|
||||
ABadge: typeof import('ant-design-vue/es')['Badge']
|
||||
AButton: typeof import('ant-design-vue/es')['Button']
|
||||
ACard: typeof import('ant-design-vue/es')['Card']
|
||||
ACheckbox: typeof import('ant-design-vue/es')['Checkbox']
|
||||
AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
|
||||
ADivider: typeof import('ant-design-vue/es')['Divider']
|
||||
ADrawer: typeof import('ant-design-vue/es')['Drawer']
|
||||
@@ -35,7 +34,6 @@ declare module '@vue/runtime-core' {
|
||||
APagination: typeof import('ant-design-vue/es')['Pagination']
|
||||
APopconfirm: typeof import('ant-design-vue/es')['Popconfirm']
|
||||
APopover: typeof import('ant-design-vue/es')['Popover']
|
||||
ARadio: typeof import('ant-design-vue/es')['Radio']
|
||||
ARadioButton: typeof import('ant-design-vue/es')['RadioButton']
|
||||
ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
|
||||
ASelect: typeof import('ant-design-vue/es')['Select']
|
||||
@@ -48,7 +46,6 @@ declare module '@vue/runtime-core' {
|
||||
ATabs: typeof import('ant-design-vue/es')['Tabs']
|
||||
ATextarea: typeof import('ant-design-vue/es')['Textarea']
|
||||
ATooltip: typeof import('ant-design-vue/es')['Tooltip']
|
||||
AUpload: typeof import('ant-design-vue/es')['Upload']
|
||||
BaseButton: typeof import('./src/core/components/BaseButton/index.ts')['default']
|
||||
BaseCard: typeof import('./src/core/components/BaseCard/index.ts')['default']
|
||||
BaseDatePicker: typeof import('./src/core/components/BaseDatePicker/index.ts')['default']
|
||||
|
||||
+3
-2
@@ -44,14 +44,15 @@ export function setupRoutes(permissionsKeys: string[], router?: Router) {
|
||||
return
|
||||
}
|
||||
|
||||
function filterRoutesByApp(routes: RouteRecordRaw) {
|
||||
function filterRoutesByApp(routes: RouteRecordRaw) {
|
||||
if (!routes.children) return
|
||||
routes.children = routes.children.filter((item) => {
|
||||
|
||||
if (item.name === 'discounts' && appName !== 'goldsun') return false
|
||||
if (item.name === 'banners' && appName !== 'garoosi') return false
|
||||
if (item.name === 'authentication' && appName !== 'garoosi') return false
|
||||
if (item.name === 'giftCard' && appName !== 'garoosi') return false
|
||||
if (item.name === 'giftCardMain' && appName !== 'garoosi') return false
|
||||
|
||||
|
||||
return true
|
||||
})
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
import {getConfigApp} from "@/utils/config";
|
||||
|
||||
const Orders: RouteRecordRaw = {
|
||||
name: 'giftCard',
|
||||
@@ -10,7 +11,7 @@ const Orders: RouteRecordRaw = {
|
||||
permissionsKey: 'giftCard',
|
||||
title: 'کارت هدیه',
|
||||
disabled: false,
|
||||
hideMenu: false,
|
||||
hideMenu: getConfigApp('name')!='garoosi',
|
||||
hideChildren: true,
|
||||
order: 7
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user