diff --git a/src/permission.js b/src/permission.js index a9ca5e2..b8c07c7 100644 --- a/src/permission.js +++ b/src/permission.js @@ -3,7 +3,7 @@ import "nprogress/nprogress.css" import router from "@/router" import store from '@/store' -const whitePath = [ '/login'] +const whitePath = [ '/login','/rule','/yszc'] // 判断登录 router.beforeEach((to, from, next) => { NProgress.start() diff --git a/src/router/index.js b/src/router/index.js index 047e2d4..a285d9f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -91,6 +91,12 @@ const router = [ title: "用户协议", component: resolve => require(['@/views/Rule'], resolve) }, + { + path: "/yszc", + name: "yszc", + title: "隐私政策", + component: resolve => require(['@/views/Yszc'], resolve) + }, { path: "/login", name: "Login", diff --git a/src/views/Login/index.vue b/src/views/Login/index.vue index 9a1add0..c5b021f 100644 --- a/src/views/Login/index.vue +++ b/src/views/Login/index.vue @@ -33,10 +33,12 @@ 登录 - -   我已同意《用户协议》 + +   我已同意 + 《用户协议》 + 《隐私政策》 - +