From a1fb6cd3c3b8a48da4f9393e09718da04f51a373 Mon Sep 17 00:00:00 2001
From: DESKTOP-CVS3R96\我恁爹 <11>
Date: Tue, 15 Nov 2022 09:58:00 +0800
Subject: [PATCH] 11111
---
src/router/index.js | 70 +++++++++++++++++-----------------
1 files changed, 35 insertions(+), 35 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index fb169a3..8b02ebc 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,5 +1,6 @@
import Vue from 'vue'
import Router from 'vue-router'
+import i18n from '@/locales/index.js'
import Home from '@/page/home/home'
import Buy from '@/page/home/buy'
import Alertdetail from '@/page/home/components/alert' // 公告详情
@@ -15,7 +16,6 @@
import ListDetail2 from '@/page/list/detail2'
import MyList from '@/page/list/my-list'
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'
@@ -63,7 +63,6 @@
Router.prototype.push = function push(location) {
return routerPush.call(this, location).catch(error => error)
}
-
export default new Router({
routes: [
{
@@ -73,7 +72,7 @@
path: '/home',
name: 'home',
meta: {
- title: '首页',
+ title: i18n.t('hj224'),
requireAuth: true,
index: 0
},
@@ -82,7 +81,7 @@
path: '/buy',
name: 'buy',
meta: {
- title: '购买',
+ title: i18n.t('hj237'),
requireAuth: true,
hasHeader: true,
index: 1
@@ -92,7 +91,7 @@
path: '/newPage',
name: 'newPage',
meta: {
- title: '详情',
+ title: i18n.t('hj238'),
hasHeader: true,
is_Show: true,
index: 2
@@ -103,7 +102,7 @@
path: '/newGg',
name: 'newGg',
meta: {
- title: '公告详情',
+ title: i18n.t('hj239'),
hasHeader: true,
is_Show: true,
index: 49
@@ -123,7 +122,7 @@
path: '/forget',
name: 'forget',
meta: {
- title: '忘记密码',
+ title: i18n.t('hj240'),
index: 4
},
component: Forget
@@ -142,7 +141,7 @@
path: '/openaccount',
name: 'openaccount',
meta: {
- title: '开户',
+ title: i18n.t('hj241'),
hasHeader: true,
index: 6
},
@@ -152,7 +151,7 @@
path: '/trading-list',
name: 'TradingList',
meta: {
- title: '行情',
+ title: i18n.t('hj242'),
requireAuth: false,
hasHeader: false,
index: 7
@@ -219,7 +218,7 @@
path: '/listdetail',
name: 'listdetail',
meta: {
- title: '详情',
+ title: i18n.t('hj238'),
requireAuth: false,
hasHeader: false,
index: 13
@@ -229,7 +228,7 @@
path: '/listdetail2',
name: 'listdetail2',
meta: {
- title: '详情',
+ title: i18n.t('hj238'),
requireAuth: false,
hasHeader: true,
index: 14
@@ -290,17 +289,18 @@
index: 19
},
component: Inquiry
- }, {
- path: '/user',
- name: 'user',
- meta: {
- title: '我的',
- requireAuth: false,
- hasHeader: true,
- index: 20
- },
- component: User
- },
+ },
+ // {
+ // path: '/user',
+ // name: 'user',
+ // meta: {
+ // title: '我的',
+ // requireAuth: false,
+ // hasHeader: true,
+ // index: 20
+ // },
+ // component: User
+ // },
{
path: '/transfer',
name: 'transfer',
@@ -326,7 +326,7 @@
path: '/warehouse',
name: 'Warehouse',
meta: {
- title: '持仓',
+ title: i18n.t('hj2'),
requireAuth: false,
hasHeader: false,
index: 22
@@ -586,7 +586,7 @@
path: '/login',
name: 'newLogin',
meta: {
- title: '用户登录',
+ title: i18n.t('hj248'),
requireAuth: false,
hasHeader: true,
index: 47,
@@ -598,7 +598,7 @@
path: '/register',
name: 'newRegister',
meta: {
- title: '用户注册',
+ title: i18n.t('hj249'),
requireAuth: false,
hasHeader: false,
index: 48,
@@ -610,7 +610,7 @@
path: '/kline',
name: 'kline',
meta: {
- title: '图标',
+ title: i18n.t('hj238'),
requireAuth: false,
hasHeader: false,
index: 49,
@@ -622,7 +622,7 @@
path: '/TradingBuy',
name: 'TradingBuy',
meta: {
- title: '图标',
+ title: i18n.t('hj237'),
requireAuth: false,
hasHeader: false,
index: 50,
@@ -631,10 +631,10 @@
component: TradingBuy
},
{
- path: '/NewUser',
+ path: '/User',
name: 'NewUser',
meta: {
- title: '图标',
+ title: i18n.t('hj243'),
requireAuth: false,
hasHeader: false,
index: 51,
@@ -645,7 +645,7 @@
path: '/wallet',
name: 'Wallet',
meta: {
- title: '图标',
+ title: i18n.t('hj244'),
requireAuth: false,
hasHeader: false,
index: 52,
@@ -656,7 +656,7 @@
path: '/transferRecord',
name: 'transferRecord',
meta: {
- title: '图标',
+ title: i18n.t('hj168'),
requireAuth: false,
hasHeader: false,
index: 53,
@@ -668,7 +668,7 @@
path: '/cashWithdrawalRecord',
name: 'cashWithdrawalRecord',
meta: {
- title: '图标',
+ title: i18n.t('hj162'),
requireAuth: false,
hasHeader: false,
index: 54,
@@ -680,7 +680,7 @@
path: '/transfers',
name: 'transfers',
meta: {
- title: '图标',
+ title: i18n.t('hj245'),
requireAuth: false,
hasHeader: false,
index: 55,
@@ -692,7 +692,7 @@
path: '/authentications',
name: 'authentications',
meta: {
- title: '图标',
+ title: i18n.t('hj246'),
requireAuth: false,
hasHeader: false,
index: 56,
@@ -704,7 +704,7 @@
path: '/bankCard',
name: 'bankCard',
meta: {
- title: '图标',
+ title: i18n.t('hj247'),
requireAuth: false,
hasHeader: false,
index: 57,
--
Gitblit v1.9.3