恢复 SSO 界面的路由

This commit is contained in:
YunaiV 2023-10-15 21:58:19 +08:00
parent 04e83e268a
commit e2a08ddbac
2 changed files with 15 additions and 5 deletions

View File

@ -185,6 +185,16 @@ const remainingRouter: AppRouteRecordRaw[] = [
noTagsView: true noTagsView: true
} }
}, },
{
path: '/sso',
component: () => import('@/views/Login/Login.vue'),
name: 'SSOLogin',
meta: {
hidden: true,
title: t('router.login'),
noTagsView: true
}
},
{ {
path: '/social-login', path: '/social-login',
component: () => import('@/views/Login/SocialLogin.vue'), component: () => import('@/views/Login/SocialLogin.vue'),
@ -333,7 +343,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
{ {
path: '/mall/product', // 商品中心 path: '/mall/product', // 商品中心
component: Layout, component: Layout,
name: 'Product', name: 'ProductCenter',
meta: { meta: {
hidden: true hidden: true
}, },
@ -395,7 +405,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
{ {
path: '/mall/trade', // 交易中心 path: '/mall/trade', // 交易中心
component: Layout, component: Layout,
name: 'Trade', name: 'TradeCenter',
meta: { meta: {
hidden: true hidden: true
}, },
@ -417,7 +427,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
{ {
path: '/member', path: '/member',
component: Layout, component: Layout,
name: 'member', name: 'MemberCenter',
meta: { hidden: true }, meta: { hidden: true },
children: [ children: [
{ {

View File

@ -55,7 +55,7 @@
<!-- 注册 --> <!-- 注册 -->
<RegisterForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" /> <RegisterForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
<!-- 三方登录 --> <!-- 三方登录 -->
<!-- <SSOLoginVue class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" /> --> <SSOLoginVue class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
</div> </div>
</Transition> </Transition>
</div> </div>
@ -70,7 +70,7 @@ import { useAppStore } from '@/store/modules/app'
import { ThemeSwitch } from '@/layout/components/ThemeSwitch' import { ThemeSwitch } from '@/layout/components/ThemeSwitch'
import { LocaleDropdown } from '@/layout/components/LocaleDropdown' import { LocaleDropdown } from '@/layout/components/LocaleDropdown'
import { LoginForm, MobileForm, QrCodeForm, RegisterForm } from './components' import { LoginForm, MobileForm, QrCodeForm, RegisterForm, SSOLoginVue } from './components'
defineOptions({ name: 'Login' }) defineOptions({ name: 'Login' })