XIGUASSR
2022-11-11 cc0a3ae1b6e72ddfdcedfca3c4cfb9ed57b41b73
src/router/index.js
@@ -17,6 +17,7 @@
import Inquiry from '@/page/home/inquiry'
import User from '@/page/user/user'
import OrderList from '@/page/user/order-list'
import Warehouse from '@/page/user/Warehouse.vue'
import holdOrderList from '@/page/user/search-order/hold-stockCode'
import holdOrderList2 from '@/page/user/search-order/hold-stockSpell'
import sellOrderList from '@/page/user/search-order/sell-stockCode'
@@ -46,6 +47,15 @@
import newRegister from '@/page/login/register.vue'
import NewPage from '@/page/home/newPage'
import NewGg from '@/page/home/newGg'
import KLine from '@/page/kline/index.vue'
import TradingBuy from '@/page/trading/buy.vue'
import NewUser from '@/page/newUser/index.vue'
import Wallet from '@/page/wallet/index.vue';
import TransferRecord from '@/page/transferRecord/index.vue'
import CashWithdrawalRecord from '@/page/cashWithdrawalRecord/index.vue'
import Transfers from '@/page/transfer/index.vue'
import Authentications from '@/page/authentication/index.vue'
import BankCard from '@/page/bankCard/index.vue'
Vue.use(Router)
@@ -300,16 +310,28 @@
        index: 21
      },
      component: Transfer
    }, {
      path: '/orderlist',
      name: 'orderlist',
    },
    // {
    //   path: '/orderlist',
    //   name: 'orderlist',
    //   meta: {
    //     title: '持仓',
    //     requireAuth: false,
    //     hasHeader: true,
    //     index: 22
    //   },
    //   component: OrderList
    // },
     {
      path: '/warehouse',
      name: 'Warehouse',
      meta: {
        title: '持仓',
        requireAuth: false,
        hasHeader: true,
        hasHeader: false,
        index: 22
      },
      component: OrderList
      component: Warehouse
    },
    {
      path: '/holdorderlist',
@@ -567,7 +589,8 @@
        title: '用户登录',
        requireAuth: false,
        hasHeader: true,
        index: 47
        index: 47,
        show: true
      },
      component: newLogin
    },
@@ -578,11 +601,118 @@
        title: '用户注册',
        requireAuth: false,
        hasHeader: false,
        index: 48
        index: 48,
        show: true
      },
      component: newRegister
    },
    {
      path: '/kline',
      name: 'kline',
      meta: {
        title: '图标',
        requireAuth: false,
        hasHeader: false,
        index: 49,
        show: true
      },
      component: KLine
    },
    {
      path: '/TradingBuy',
      name: 'TradingBuy',
      meta: {
        title: '图标',
        requireAuth: false,
        hasHeader: false,
        index: 50,
        show: true
      },
      component: TradingBuy
    },
    {
      path: '/NewUser',
      name: 'NewUser',
      meta: {
        title: '图标',
        requireAuth: false,
        hasHeader: false,
        index: 51,
      },
      component: NewUser
    },
    {
      path: '/wallet',
      name: 'Wallet',
      meta: {
        title: '图标',
        requireAuth: false,
        hasHeader: false,
        index: 52,
      },
      component: Wallet
    },
    {
      path: '/transferRecord',
      name: 'transferRecord',
      meta: {
        title: '图标',
        requireAuth: false,
        hasHeader: false,
        index: 53,
        show: true
      },
      component: TransferRecord
    },
    {
      path: '/cashWithdrawalRecord',
      name: 'cashWithdrawalRecord',
      meta: {
        title: '图标',
        requireAuth: false,
        hasHeader: false,
        index: 54,
        show: true
      },
      component: CashWithdrawalRecord
    },
    {
      path: '/transfers',
      name: 'transfers',
      meta: {
        title: '图标',
        requireAuth: false,
        hasHeader: false,
        index: 55,
        show: true
      },
      component: Transfers
    },
    {
      path: '/authentications',
      name: 'authentications',
      meta: {
        title: '图标',
        requireAuth: false,
        hasHeader: false,
        index: 56,
        show: true
      },
      component: Authentications
    },
    {
      path: '/bankCard',
      name: 'bankCard',
      meta: {
        title: '图标',
        requireAuth: false,
        hasHeader: false,
        index: 57,
        show: true
      },
      component: BankCard
    },
    {
      // 会匹配所有路径
      path: '*',
      redirect: '/home'