|
|
@@ -1,5 +1,6 @@
|
|
|
import * as EnumType from '@/common/constants/routerName';
|
|
|
import Layout from '@/layout/index.vue';
|
|
|
+import Main from '@/layout/main.vue';
|
|
|
import { isLogin } from '@/services/bus/login';
|
|
|
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
|
|
|
import eventBus from '../utils/eventBus';
|
|
|
@@ -44,7 +45,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'custom_info',
|
|
|
name: 'custom_info',
|
|
|
- component: () => import('@/views/information/custom/index.vue'),
|
|
|
+ component: Main,
|
|
|
meta: {
|
|
|
requireAuth: true,
|
|
|
},
|
|
|
@@ -73,7 +74,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'goods_info',
|
|
|
name: 'goods_info',
|
|
|
- component: () => import('@/views/information/goods/index.vue'),
|
|
|
+ component: Main,
|
|
|
meta: {
|
|
|
requireAuth: true,
|
|
|
},
|
|
|
@@ -100,25 +101,9 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- path: '/outaccount_status',
|
|
|
- name: 'outaccount_status',
|
|
|
- component: () => import('@/views/search/outaccount_status/index.vue'),
|
|
|
- meta: {
|
|
|
- requireAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/inventory',
|
|
|
- name: 'inventory',
|
|
|
- component: () => import('@/views/search/inventory/index.vue'),
|
|
|
- meta: {
|
|
|
- requireAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
path: '/spot_contract',
|
|
|
name: 'spot_contract',
|
|
|
- component: () => import('@/views/information/spot-contract/index.vue'),
|
|
|
+ component: Main,
|
|
|
meta: {
|
|
|
requireAuth: true,
|
|
|
},
|
|
|
@@ -163,7 +148,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: '/warehouse_info',
|
|
|
name: 'warehouse_info',
|
|
|
- component: () => import('@/views/information/warehouse-info/index.vue'),
|
|
|
+ component: Main,
|
|
|
meta: {
|
|
|
requireAuth: true,
|
|
|
},
|
|
|
@@ -189,6 +174,22 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
+ {
|
|
|
+ path: '/outaccount_status',
|
|
|
+ name: 'outaccount_status',
|
|
|
+ component: () => import('@/views/search/outaccount_status/index.vue'),
|
|
|
+ meta: {
|
|
|
+ requireAuth: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/inventory',
|
|
|
+ name: 'inventory',
|
|
|
+ component: () => import('@/views/search/inventory/index.vue'),
|
|
|
+ meta: {
|
|
|
+ requireAuth: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
|
|
|
{
|
|
|
path: '/purchase',
|