Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
dabde03a
Commit
dabde03a
authored
Nov 01, 2021
by
maxiaohan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
如登录时有token 直接跳转home页
parent
987eb654
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
src/views/login/Login1.vue
+9
-1
No files found.
src/views/login/Login1.vue
View file @
dabde03a
...
...
@@ -26,6 +26,7 @@
<div
class=
" middle margin_top25_bottom10"
>
<el-button
class=
"magin_left_right30"
:class=
"
{ active: loginType.accountStatus }"
:autofocus="true"
type="text"
@click="changeLoginType(1)"
...
...
@@ -35,6 +36,7 @@
<el-button
class=
"magin_left_right30"
type=
"text"
:class=
"
{ active: loginType.keyStatus }"
@click="changeLoginType(2)"
>KEY登录
</el-button>
...
...
@@ -60,7 +62,7 @@
</
template
>
<
script
>
import
zoom
from
'@/utils/autosize'
;
import
zoom
from
"@/utils/autosize"
;
import
accountsLogin
from
"./modules/AccountsLogin.vue"
;
import
keyLogin
from
"./modules/KeyLogin.vue"
;
...
...
@@ -123,6 +125,9 @@ export default {
// zoom('homepage_hero_module')
// })
this
.
loginType
.
accountStatus
=
true
;
if
(
localStorage
.
getItem
(
"token"
)
!==
null
)
{
this
.
$router
.
push
(
"/Home/Home"
);
}
// todo 初始登录 帐号密码登录选中状态
// this.init();
// 视频自动适应高度
...
...
@@ -197,6 +202,9 @@ video {
font-family
:
MicrosoftYaHei
;
}
.active
{
color
:
#ffffff
;
}
.el-button--text
:focus
{
width
:
108px
;
height
:
24px
;
...
...
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