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
b56b4c38
Commit
b56b4c38
authored
Jun 24, 2024
by
brent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add catch
parent
dfc7ea4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
package-lock.json
package-lock.json
+7
-7
package.json
package.json
+1
-1
Index.vue
src/views/Index.vue
+9
-0
No files found.
package-lock.json
View file @
b56b4c38
...
...
@@ -8,7 +8,7 @@
"name"
:
"AONET"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"aonweb"
:
"^1.0.
5
"
,
"aonweb"
:
"^1.0.
6
"
,
"aos"
:
"^2.3.4"
,
"axios"
:
"^1.6.8"
,
"element-plus"
:
"^2.7.5"
,
...
...
@@ -1854,9 +1854,9 @@
}
},
"node_modules/aonweb"
:
{
"version"
:
"1.0.
5
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-1.0.
5
.tgz"
,
"integrity"
:
"sha512-
5J+2C87lImVNqRWjl7bsbjteK9KQdZGwwOK83fLzi4IQOCe+tJrvrn8oYjZRpSneya7xTxrqEHqjR4Oz8OhQOg
=="
,
"version"
:
"1.0.
6
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-1.0.
6
.tgz"
,
"integrity"
:
"sha512-
whtEW2EVyEu3Ig8ZSM6lzCeT5DkjMedSqOsIID4e0z07j2gFDaJ6jGZk9SjQi6Qd0wl0KfgmumkOIEhcNDcM7w
=="
,
"dependencies"
:
{
"@fingerprintjs/fingerprintjs"
:
"^4.4.0"
,
"bignumber.js"
:
"^9.1.2"
,
...
...
@@ -5672,9 +5672,9 @@
}
},
"aonweb"
:
{
"version"
:
"1.0.
5
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-1.0.
5
.tgz"
,
"integrity"
:
"sha512-
5J+2C87lImVNqRWjl7bsbjteK9KQdZGwwOK83fLzi4IQOCe+tJrvrn8oYjZRpSneya7xTxrqEHqjR4Oz8OhQOg
=="
,
"version"
:
"1.0.
6
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-1.0.
6
.tgz"
,
"integrity"
:
"sha512-
whtEW2EVyEu3Ig8ZSM6lzCeT5DkjMedSqOsIID4e0z07j2gFDaJ6jGZk9SjQi6Qd0wl0KfgmumkOIEhcNDcM7w
=="
,
"requires"
:
{
"@fingerprintjs/fingerprintjs"
:
"^4.4.0"
,
"bignumber.js"
:
"^9.1.2"
,
...
...
package.json
View file @
b56b4c38
...
...
@@ -11,7 +11,7 @@
"type-check"
:
"vue-tsc --build --force"
},
"dependencies"
:
{
"
aonweb
"
:
"
^1.0.
5
"
,
"
aonweb
"
:
"
^1.0.
6
"
,
"
aos
"
:
"
^2.3.4
"
,
"
axios
"
:
"
^1.6.8
"
,
"
element-plus
"
:
"
^2.7.5
"
,
...
...
src/views/Index.vue
View file @
b56b4c38
...
...
@@ -260,6 +260,14 @@ async function login() {
console
.
log
(
"
getWeb3 account
"
,
acc
)
console
.
log
(
"
getWeb3 userId
"
,
userId
)
console
.
log
(
"
getWeb3 error
"
,
error
)
if
(
error
)
{
if
(
error
&&
typeof
error
==
'
string
'
){
showToast
(
error
);
}
else
{
showToast
(
error
.
message
);
}
return
}
bus
.
emit
(
'
get_balance
'
,
"
login
"
);
})
console
.
log
(
`demo index after login time =
${
new
Date
().
getTime
()
-
time
}
`
)
...
...
@@ -267,6 +275,7 @@ async function login() {
}
bus
.
emit
(
'
get_balance
'
,
"
login
"
);
}
catch
(
error
)
{
console
.
log
(
"
index demo error
"
,
error
)
if
(
error
&&
typeof
error
==
'
string
'
){
showToast
(
error
);
}
else
{
...
...
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