Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-baoshen-pc
Project
Project
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
何远江
topsun-baoshen-pc
Commits
a9c2a054
Commit
a9c2a054
authored
Oct 26, 2023
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改默认登录账号
parent
0e5a04c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
PageTitle.vue
src/layouts/page/PageTitle.vue
+0
-1
userLogin.ts
src/views/sys/login/userLogin.ts
+6
-6
No files found.
src/layouts/page/PageTitle.vue
View file @
a9c2a054
<
template
>
<SvgIcon
name=
"home"
></SvgIcon>
<h1
class=
"page-title"
>
{{
title
}}
</h1>
</
template
>
...
...
src/views/sys/login/userLogin.ts
View file @
a9c2a054
...
...
@@ -13,19 +13,19 @@ interface FormState {
export
function
useLoginPage
()
{
const
loading
=
ref
(
false
)
const
loginFormState
=
reactive
<
FormState
>
({
username
:
'
ceshi
'
,
password
:
'
123
'
,
username
:
'
test9
'
,
password
:
'
0000
'
,
remember
:
false
})
const
router
=
useRouter
()
const
userStore
=
useUserStore
()
const
handleLogin
=
async
()
=>
{
loading
.
value
=
true
try
{
userStore
.
login
(
loginFormState
)
}
catch
(
e
)
{
Promise
.
reject
(
e
)
await
userStore
.
login
(
loginFormState
)
loading
.
value
=
false
}
catch
{
loading
.
value
=
false
}
}
...
...
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