|
@@ -46,70 +46,68 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
|
meta: {
|
|
meta: {
|
|
isKeepAlive: true,
|
|
isKeepAlive: true,
|
|
},
|
|
},
|
|
- children: import.meta.env.PROD
|
|
|
|
- ? []
|
|
|
|
- : [
|
|
|
|
- {
|
|
|
|
- path: '/statement',
|
|
|
|
- name: '/statement',
|
|
|
|
- component: () => import('/@/views/admin/nozzle/index.vue'),
|
|
|
|
- meta: {
|
|
|
|
- title: '油枪状态',
|
|
|
|
- isLink: '',
|
|
|
|
- isHide: false,
|
|
|
|
- isKeepAlive: true,
|
|
|
|
- isAffix: false,
|
|
|
|
- isIframe: false,
|
|
|
|
- roles: ['admin', 'common'],
|
|
|
|
- icon: 'iconfont icon-crew_feature',
|
|
|
|
- },
|
|
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ path: '/statement',
|
|
|
|
+ name: '/statement',
|
|
|
|
+ component: () => import('/@/views/admin/nozzle/index.vue'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '油枪状态',
|
|
|
|
+ isLink: '',
|
|
|
|
+ isHide: false,
|
|
|
|
+ isKeepAlive: true,
|
|
|
|
+ isAffix: false,
|
|
|
|
+ isIframe: false,
|
|
|
|
+ roles: ['admin', 'common'],
|
|
|
|
+ icon: 'iconfont icon-crew_feature',
|
|
},
|
|
},
|
|
- {
|
|
|
|
- path: '/station',
|
|
|
|
- name: '/station',
|
|
|
|
- component: () => import('/@/views/admin/station/station.vue'),
|
|
|
|
- meta: {
|
|
|
|
- title: '油站信息',
|
|
|
|
- isLink: '',
|
|
|
|
- isHide: false,
|
|
|
|
- isKeepAlive: true,
|
|
|
|
- isAffix: false,
|
|
|
|
- isIframe: false,
|
|
|
|
- roles: ['admin', 'common'],
|
|
|
|
- icon: 'iconfont icon-crew_feature',
|
|
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/station',
|
|
|
|
+ name: '/station',
|
|
|
|
+ component: () => import('/@/views/admin/station/station.vue'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '油站信息',
|
|
|
|
+ isLink: '',
|
|
|
|
+ isHide: false,
|
|
|
|
+ isKeepAlive: true,
|
|
|
|
+ isAffix: false,
|
|
|
|
+ isIframe: false,
|
|
|
|
+ roles: ['admin', 'common'],
|
|
|
|
+ icon: 'iconfont icon-crew_feature',
|
|
},
|
|
},
|
|
- {
|
|
|
|
- path: '/oil',
|
|
|
|
- name: '/oil',
|
|
|
|
- component: () => import('/@/views/admin/oil/oil.vue'),
|
|
|
|
- meta: {
|
|
|
|
- title: '油品信息',
|
|
|
|
- isLink: '',
|
|
|
|
- isHide: false,
|
|
|
|
- isKeepAlive: true,
|
|
|
|
- isAffix: false,
|
|
|
|
- isIframe: false,
|
|
|
|
- roles: ['admin', 'common'],
|
|
|
|
- icon: 'iconfont icon-crew_feature',
|
|
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/oil',
|
|
|
|
+ name: '/oil',
|
|
|
|
+ component: () => import('/@/views/admin/oil/oil.vue'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '油品信息',
|
|
|
|
+ isLink: '',
|
|
|
|
+ isHide: false,
|
|
|
|
+ isKeepAlive: true,
|
|
|
|
+ isAffix: false,
|
|
|
|
+ isIframe: false,
|
|
|
|
+ roles: ['admin', 'common'],
|
|
|
|
+ icon: 'iconfont icon-crew_feature',
|
|
},
|
|
},
|
|
- {
|
|
|
|
- path: '/order',
|
|
|
|
- name: '/order',
|
|
|
|
- component: () => import('/@/views/admin/order/index.vue'),
|
|
|
|
- meta: {
|
|
|
|
- title: '订单信息',
|
|
|
|
- isLink: '',
|
|
|
|
- isHide: false,
|
|
|
|
- isKeepAlive: true,
|
|
|
|
- isAffix: false,
|
|
|
|
- isIframe: false,
|
|
|
|
- roles: ['admin', 'common'],
|
|
|
|
- icon: 'iconfont icon-crew_feature',
|
|
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/order',
|
|
|
|
+ name: '/order',
|
|
|
|
+ component: () => import('/@/views/admin/order/index.vue'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '订单信息',
|
|
|
|
+ isLink: '',
|
|
|
|
+ isHide: false,
|
|
|
|
+ isKeepAlive: true,
|
|
|
|
+ isAffix: false,
|
|
|
|
+ isIframe: false,
|
|
|
|
+ roles: ['admin', 'common'],
|
|
|
|
+ icon: 'iconfont icon-crew_feature',
|
|
},
|
|
},
|
|
- ],
|
|
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
|
|
|
|
]
|
|
]
|
|
@@ -147,6 +145,7 @@ export const notFoundAndNoPower = [
|
|
*/
|
|
*/
|
|
export const staticRoutes: Array<RouteRecordRaw> = [
|
|
export const staticRoutes: Array<RouteRecordRaw> = [
|
|
{
|
|
{
|
|
|
|
+
|
|
path: '/login',
|
|
path: '/login',
|
|
name: 'login',
|
|
name: 'login',
|
|
component: () => import('/@/views/admin/login/index.vue'),
|
|
component: () => import('/@/views/admin/login/index.vue'),
|