Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-26009-2210132
proj235-Linux的OTA升级系统-3773
Commits
380348e6
Commit
380348e6
authored
9 months ago
by
终究还是我们队
Browse files
Options
Download
Patches
Plain Diff
Add new file
parent
e189677f
main
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
初赛作品/web/views/Login.vue
+39
-0
初赛作品/web/views/Login.vue
with
39 additions
and
0 deletions
+39
-0
初赛作品/web/views/Login.vue
0 → 100644
+
39
−
0
View file @
380348e6
<
template
>
<div>
<h1>
Login
</h1>
<form
@
submit.prevent=
"login"
>
<div>
<label
for=
"username"
>
Username:
</label>
<input
type=
"text"
id=
"username"
v-model=
"username"
>
</div>
<div>
<label
for=
"password"
>
Password:
</label>
<input
type=
"password"
id=
"password"
v-model=
"password"
>
</div>
<button
type=
"submit"
>
Login
</button>
</form>
</div>
</
template
>
<
script
>
export
default
{
name
:
'
Login
'
,
data
()
{
return
{
username
:
''
,
password
:
''
};
},
methods
:
{
login
()
{
// Simulate login
this
.
$store
.
dispatch
(
'
login
'
,
{
username
:
this
.
username
,
password
:
this
.
password
});
this
.
$router
.
push
(
'
/dashboard
'
);
}
}
};
</
script
>
<
style
scoped
>
/* Styles here */
</
style
>
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets