src/router/index.js
@@ -48,6 +48,7 @@ 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) @@ -611,6 +612,18 @@ component: KLine }, { path: '/TradingBuy', name: 'TradingBuy', meta: { title: '图标', requireAuth: false, hasHeader: false, index: 50, show: true }, component: TradingBuy }, { // 会匹配所有路径 path: '*', redirect: '/home'