Skip to content

Commit e2a08dd

Browse files
committed
恢复 SSO 界面的路由
1 parent 04e83e2 commit e2a08dd

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

src/router/modules/remaining.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,16 @@ const remainingRouter: AppRouteRecordRaw[] = [
185185
noTagsView: true
186186
}
187187
},
188+
{
189+
path: '/sso',
190+
component: () => import('@/views/Login/Login.vue'),
191+
name: 'SSOLogin',
192+
meta: {
193+
hidden: true,
194+
title: t('router.login'),
195+
noTagsView: true
196+
}
197+
},
188198
{
189199
path: '/social-login',
190200
component: () => import('@/views/Login/SocialLogin.vue'),
@@ -333,7 +343,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
333343
{
334344
path: '/mall/product', // 商品中心
335345
component: Layout,
336-
name: 'Product',
346+
name: 'ProductCenter',
337347
meta: {
338348
hidden: true
339349
},
@@ -395,7 +405,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
395405
{
396406
path: '/mall/trade', // 交易中心
397407
component: Layout,
398-
name: 'Trade',
408+
name: 'TradeCenter',
399409
meta: {
400410
hidden: true
401411
},
@@ -417,7 +427,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
417427
{
418428
path: '/member',
419429
component: Layout,
420-
name: 'member',
430+
name: 'MemberCenter',
421431
meta: { hidden: true },
422432
children: [
423433
{

src/views/Login/Login.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<!-- 注册 -->
5656
<RegisterForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
5757
<!-- 三方登录 -->
58-
<!-- <SSOLoginVue class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" /> -->
58+
<SSOLoginVue class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
5959
</div>
6060
</Transition>
6161
</div>
@@ -70,7 +70,7 @@ import { useAppStore } from '@/store/modules/app'
7070
import { ThemeSwitch } from '@/layout/components/ThemeSwitch'
7171
import { LocaleDropdown } from '@/layout/components/LocaleDropdown'
7272
73-
import { LoginForm, MobileForm, QrCodeForm, RegisterForm } from './components'
73+
import { LoginForm, MobileForm, QrCodeForm, RegisterForm, SSOLoginVue } from './components'
7474
7575
defineOptions({ name: 'Login' })
7676

0 commit comments

Comments
 (0)