Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e2a08ddb
authored
Oct 15, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
恢复 SSO 界面的路由
parent
04e83e26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
src/router/modules/remaining.ts
+13
-3
src/views/Login/Login.vue
+2
-2
No files found.
src/router/modules/remaining.ts
View file @
e2a08ddb
...
...
@@ -186,6 +186,16 @@ const remainingRouter: AppRouteRecordRaw[] = [
}
},
{
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'
),
name
:
'SocialLogin'
,
...
...
@@ -333,7 +343,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
{
path
:
'/mall/product'
,
// 商品中心
component
:
Layout
,
name
:
'Product'
,
name
:
'Product
Center
'
,
meta
:
{
hidden
:
true
},
...
...
@@ -395,7 +405,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
{
path
:
'/mall/trade'
,
// 交易中心
component
:
Layout
,
name
:
'Trade'
,
name
:
'Trade
Center
'
,
meta
:
{
hidden
:
true
},
...
...
@@ -417,7 +427,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
{
path
:
'/member'
,
component
:
Layout
,
name
:
'
memb
er'
,
name
:
'
MemberCent
er'
,
meta
:
{
hidden
:
true
},
children
:
[
{
...
...
src/views/Login/Login.vue
View file @
e2a08ddb
...
...
@@ -55,7 +55,7 @@
<!-- 注册 -->
<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>
</Transition>
</div>
...
...
@@ -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'
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment