Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
poster
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
刘续中
poster
Commits
6795181a
Commit
6795181a
authored
Jun 24, 2024
by
brent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log
parent
57862a23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Index.vue
src/views/Index.vue
+8
-2
No files found.
src/views/Index.vue
View file @
6795181a
...
@@ -236,25 +236,31 @@ function selectTemplate(id, imageUrl, prompt_) {
...
@@ -236,25 +236,31 @@ function selectTemplate(id, imageUrl, prompt_) {
async
function
login
()
{
async
function
login
()
{
try
{
try
{
let
time
=
new
Date
().
getTime
()
console
.
log
(
`demo index login in time =
${
time
}
`
)
showLoadingToast
({
showLoadingToast
({
duration
:
0
,
duration
:
0
,
forbidClick
:
true
,
forbidClick
:
true
,
message
:
'
Loading...
'
,
message
:
'
Loading...
'
,
});
});
console
.
log
(
`demo index login after showLoadingToast time =
${
new
Date
().
getTime
()
-
time
}
`
)
let
user
=
new
User
()
let
user
=
new
User
()
let
temp
=
await
user
.
islogin
()
let
temp
=
await
user
.
islogin
()
console
.
log
(
`demo index islogin res time =
${
new
Date
().
getTime
()
-
time
}
`
)
if
(
!
temp
)
{
if
(
!
temp
)
{
console
.
log
(
'
index islogin
'
)
console
.
log
(
`demo index before login time =
${
new
Date
().
getTime
()
-
time
}
`
)
user
.
login
((
acc
,
userId
,
error
)
=>
{
user
.
login
((
acc
,
userId
,
error
)
=>
{
console
.
log
(
`demo index login res time =
${
new
Date
().
getTime
()
-
time
}
`
)
console
.
log
(
"
getWeb3 account
"
,
acc
)
console
.
log
(
"
getWeb3 account
"
,
acc
)
console
.
log
(
"
getWeb3 userId
"
,
userId
)
console
.
log
(
"
getWeb3 userId
"
,
userId
)
console
.
log
(
"
getWeb3 error
"
,
error
)
console
.
log
(
"
getWeb3 error
"
,
error
)
bus
.
emit
(
'
get_balance
'
,
"
login
"
);
bus
.
emit
(
'
get_balance
'
,
"
login
"
);
})
})
console
.
log
(
`demo index after login time =
${
new
Date
().
getTime
()
-
time
}
`
)
return
return
}
}
bus
.
emit
(
'
get_balance
'
,
"
login
"
);
bus
.
emit
(
'
get_balance
'
,
"
login
"
);
console
.
log
(
'
index islogin sssss
'
,
temp
)
}
catch
(
error
)
{
}
catch
(
error
)
{
}
finally
{
}
finally
{
...
...
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