| | |
| | | routes: [ |
| | | { |
| | | path: "/", |
| | | redirect: "/home_index" |
| | | redirect: "/markets" |
| | | }, |
| | | // #region 7.2 新增路由------------------------------------- |
| | | // 新首页 |
| | | { |
| | | path: "/home_index", |
| | | name: "home_index", |
| | | meta: { |
| | | title: i18n.t("hj224"), |
| | | requireAuth: false, |
| | | index: 0 |
| | | }, |
| | | component: () => import("@/page/home/homeIndex.vue") |
| | | }, |
| | | // 市场 |
| | | // { |
| | | // path: "/home_index", |
| | | // name: "home_index", |
| | | // meta: { |
| | | // title: i18n.t("hj224"), |
| | | // requireAuth: false, |
| | | // index: 0 |
| | | // }, |
| | | // component: () => import("@/page/home/homeIndex.vue") |
| | | // }, |
| | | // 首页 |
| | | { |
| | | path: "/markets", |
| | | name: "markets", |
| | |
| | | index: 0 |
| | | }, |
| | | component: () => import("@/page/markets/markets.vue") |
| | | }, |
| | | // 股票列表页 |
| | | { |
| | | path: "/markets-list", |
| | | name: "markets-list", |
| | | meta: { |
| | | title: i18n.t("hj62"), |
| | | requireAuth: true, |
| | | index: 0 |
| | | }, |
| | | component: () => import("@/page/markets/marketsList.vue") |
| | | }, |
| | | { |
| | | path: "/transferNew", |
| | | name: "transferNew", |
| | | meta: { |
| | | title: i18n.t("划转"), |
| | | requireAuth: true, |
| | | index: 1 |
| | | }, |
| | | component: () => import("@/page/user/transferNew.vue") |
| | | }, |
| | | // AI量化交易 |
| | | { |
| | |
| | | meta: { |
| | | title: i18n.t("hj6"), |
| | | requireAuth: false, |
| | | show: true, |
| | | index: 1 |
| | | index: 0 |
| | | }, |
| | | component: () => import("@/page/home/newList.vue") |
| | | }, |
| | |
| | | component: () => import("@/page/kline/kIndex.vue") |
| | | }, |
| | | //#endregion |
| | | // #region 8.11 新增路由------------------------------------- |
| | | // 理财余额页面 |
| | | { |
| | | path: "/fund_index", |
| | | name: "fund_index", |
| | | meta: { |
| | | title: i18n.t("理财"), |
| | | requireAuth: false, |
| | | index: 0 |
| | | }, |
| | | component: () => import("@/page/home/fundIndex.vue") |
| | | }, |
| | | // 理财规则 |
| | | { |
| | | path: "/fund_rules", |
| | | name: "fund_rules", |
| | | meta: { |
| | | title: i18n.t("理财"), |
| | | requireAuth: false, |
| | | show: true, |
| | | index: 0 |
| | | }, |
| | | component: () => import("@/page/home/fundRules.vue") |
| | | }, |
| | | // 我的订单,包括持仓和平仓 |
| | | { |
| | | path: "/myorder", |
| | | name: "myorder", |
| | | meta: { |
| | | title: i18n.t("订单"), |
| | | requireAuth: false, |
| | | // hasHeader: true, |
| | | // show: true, |
| | | index: 1 |
| | | }, |
| | | component: () => import("@/page/user/myOrder.vue") |
| | | }, |
| | | //#endregion |
| | | //#region 旧路由--------------------------------------------- |
| | | { |
| | | path: "/home", |