Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
ae6ad3e1
Commit
ae6ad3e1
authored
Apr 22, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
570da5b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
Login.vue
src/components/Login.vue
+2
-12
index.js
src/plug/index.js
+8
-0
No files found.
src/components/Login.vue
View file @
ae6ad3e1
...
...
@@ -199,8 +199,8 @@
</el-form>
<img
alt
class=
"logo"
/>
<div
class=
"register_box"
>
<span
class=
"register"
>
忘记密码?
</span>
<span
class=
"register"
@
click=
"
goLogin(
)"
style=
"border-left: 1px solid rgb(169, 169, 169);"
>
注册账号
</span>
<span
class=
"register"
@
click=
"CommonJump('Forgetpassword',
{blank:'y'})"
>忘记密码?
</span>
<span
class=
"register"
@
click=
"
CommonJump('Register',
{blank:'y'}
)" style="border-left: 1px solid rgb(169, 169, 169);">注册账号
</span>
</div>
</div>
</div>
...
...
@@ -278,16 +278,6 @@
}
});
},
//跳转注册
goLogin
()
{
this
.
$router
.
push
({
name
:
'Register'
,
query
:
{
blank
:
"y"
}
});
},
},
mounted
()
{
if
(
!
this
.
isOnline
())
{
...
...
src/plug/index.js
View file @
ae6ad3e1
...
...
@@ -166,6 +166,14 @@ export default {
}
});
},
//公用跳转
Vue
.
prototype
.
CommonJump
=
function
(
path
,
obj
){
this
.
$router
.
push
({
name
:
path
,
query
:
obj
});
}
//HTTP提交数据
Vue
.
prototype
.
apipost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
,
isOnline
)
{
if
(
msg
==
null
||
msg
==
""
)
{
...
...
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