布局修改 部分bug修复
This commit is contained in:
@@ -71,12 +71,12 @@ const routes: Array<RouteRecordRaw> = [
|
||||
meta: { enter: "all" },
|
||||
component: () => import("@/views/HomeView/Tools.vue"),
|
||||
},
|
||||
{
|
||||
path: "homePage",
|
||||
name: "homePage",
|
||||
meta: { enter: "all" },
|
||||
component: () => import("@/views/HomeView/HomeView.vue"),
|
||||
},
|
||||
// {
|
||||
// path: "homePage",
|
||||
// name: "homePage",
|
||||
// meta: { enter: "all" },
|
||||
// component: () => import("@/views/HomeView/HomeView.vue"),
|
||||
// },
|
||||
{
|
||||
path: "library",
|
||||
name: "library",
|
||||
@@ -312,12 +312,20 @@ const routes: Array<RouteRecordRaw> = [
|
||||
component: () => import("@/views/affiliate/affiliatePage.vue"),
|
||||
children: [
|
||||
{
|
||||
path: "/affiliate",
|
||||
path: "/affiliateHome",
|
||||
name: "affiliateHome",
|
||||
meta: {
|
||||
enter: 2,
|
||||
},
|
||||
component: () => import("@/component/affiliate/home.vue"),
|
||||
},
|
||||
{
|
||||
path: "/affiliateReferral",
|
||||
name: "affiliateReferral",
|
||||
meta: {
|
||||
enter: 2,
|
||||
},
|
||||
component: () => import("@/component/affiliate/Referral/index.vue"),
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -329,14 +337,6 @@ const routes: Array<RouteRecordRaw> = [
|
||||
},
|
||||
component: () => import("@/views/affiliate/affiliateRegister.vue"),
|
||||
},
|
||||
{
|
||||
path: "/setIdentification",
|
||||
name: "setIdentification",
|
||||
meta: {
|
||||
enter: "all",
|
||||
},
|
||||
component: () => import("@/views/setIdentification.vue"),
|
||||
},
|
||||
{
|
||||
path: "/feedbackSurvey",
|
||||
name: "feedbackSurvey",
|
||||
@@ -361,6 +361,14 @@ const routes: Array<RouteRecordRaw> = [
|
||||
},
|
||||
component: () => import("@/views/404.vue"),
|
||||
},
|
||||
{
|
||||
path: "/userManual",
|
||||
name: "userManual",
|
||||
meta: {
|
||||
enter: "all",
|
||||
},
|
||||
component: () => import("@/views/userManual.vue"),
|
||||
},
|
||||
{
|
||||
path: "/:catchAll(.*)",
|
||||
redirect: "/404",
|
||||
@@ -373,7 +381,7 @@ const router = createRouter({
|
||||
routes,
|
||||
});
|
||||
// 刷新保存数据-
|
||||
// let state: any = store.state;
|
||||
let state: any = store.state;
|
||||
// window.addEventListener("beforeunload", (e) => {
|
||||
// localStorage.setItem(
|
||||
// "vuex_setUserDetail",
|
||||
@@ -398,7 +406,7 @@ let setMurmur = (id: any) => {
|
||||
Https.axiosPost(Https.httpUrls.noLoginRequired, data)
|
||||
.then((rv) => {
|
||||
let isTest = rv.systemUser == 3 ? true : false;
|
||||
let isBeginner = rv.isBeginner == 1 ? true : false;
|
||||
let isBeginner = rv?.isBeginner == 1 ? true : false;
|
||||
setCookie("isMurmur", true);
|
||||
setCookie("token", rv.token);
|
||||
setCookie("isTest", isTest);
|
||||
|
||||
Reference in New Issue
Block a user