|
@@ -44,19 +44,16 @@ import QRegister from "@/pages/qRegister/index";
|
44
|
44
|
export const authRoutes = [
|
45
|
45
|
{
|
46
|
46
|
index: true,
|
47
|
|
- element: <Navigate to="/authentication" />,
|
|
47
|
+ element: <Navigate to="/firstPage" replace="/firstPage" />,
|
48
|
48
|
},
|
49
|
|
- // {
|
50
|
|
- // path: "/qLogin",
|
51
|
|
- // element: <QLogin />,
|
52
|
|
- // },
|
|
49
|
+
|
53
|
50
|
// 实名认证流程
|
54
|
51
|
{
|
55
|
52
|
path: "/authentication",
|
56
|
53
|
element: <Authentication />,
|
57
|
54
|
meta: {
|
58
|
55
|
title: "",
|
59
|
|
- hideInMenu: true
|
|
56
|
+ hideInMenu: true,
|
60
|
57
|
},
|
61
|
58
|
},
|
62
|
59
|
{
|
|
@@ -216,7 +213,7 @@ export const defaultRoutes = [
|
216
|
213
|
},
|
217
|
214
|
];
|
218
|
215
|
|
219
|
|
-export function mergeAuthRoutes (r1, r2) {
|
|
216
|
+export function mergeAuthRoutes(r1, r2) {
|
220
|
217
|
const r = r1.slice();
|
221
|
218
|
const children = r1[0].children.slice();
|
222
|
219
|
r[0].children = children.concat(r2);
|
|
@@ -226,7 +223,7 @@ export function mergeAuthRoutes (r1, r2) {
|
226
|
223
|
// 全部路由
|
227
|
224
|
export const routes = mergeAuthRoutes(defaultRoutes, authRoutes);
|
228
|
225
|
console.log(routes);
|
229
|
|
-function getPath (parent = "/", current = "") {
|
|
226
|
+function getPath(parent = "/", current = "") {
|
230
|
227
|
if (current.indexOf("/") === 0 || current.indexOf("http") === 0)
|
231
|
228
|
return current;
|
232
|
229
|
return `${parent}/${current}`.replace(/\/\//g, "/");
|