| | |
| | | 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' |
| | |
| | | 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' |
| | | |
| | | Vue.use(Router) |
| | | |
| | |
| | | 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', |
| | |
| | | title: '用户登录', |
| | | requireAuth: false, |
| | | hasHeader: true, |
| | | index: 47 |
| | | index: 47, |
| | | show: true |
| | | }, |
| | | component: newLogin |
| | | }, |
| | |
| | | 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: '*', |
| | | redirect: '/home' |