From e2a08ddbac69a06b346a3f624bf0b0db2242bb8c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 15 Oct 2023 21:58:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=20SSO=20=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/modules/remaining.ts | 16 +++++++++++++--- src/views/Login/Login.vue | 4 ++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index f955b36b..aa260cf1 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -185,6 +185,16 @@ const remainingRouter: AppRouteRecordRaw[] = [ noTagsView: true } }, + { + path: '/sso', + component: () => import('@/views/Login/Login.vue'), + name: 'SSOLogin', + meta: { + hidden: true, + title: t('router.login'), + noTagsView: true + } + }, { path: '/social-login', component: () => import('@/views/Login/SocialLogin.vue'), @@ -333,7 +343,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ { path: '/mall/product', // 商品中心 component: Layout, - name: 'Product', + name: 'ProductCenter', meta: { hidden: true }, @@ -395,7 +405,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ { path: '/mall/trade', // 交易中心 component: Layout, - name: 'Trade', + name: 'TradeCenter', meta: { hidden: true }, @@ -417,7 +427,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ { path: '/member', component: Layout, - name: 'member', + name: 'MemberCenter', meta: { hidden: true }, children: [ { diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue index d1a5e7f5..19ffe2d7 100644 --- a/src/views/Login/Login.vue +++ b/src/views/Login/Login.vue @@ -55,7 +55,7 @@ - + @@ -70,7 +70,7 @@ import { useAppStore } from '@/store/modules/app' import { ThemeSwitch } from '@/layout/components/ThemeSwitch' import { LocaleDropdown } from '@/layout/components/LocaleDropdown' -import { LoginForm, MobileForm, QrCodeForm, RegisterForm } from './components' +import { LoginForm, MobileForm, QrCodeForm, RegisterForm, SSOLoginVue } from './components' defineOptions({ name: 'Login' })