Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
X
XiTianSenMall
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
leiqingsong
XiTianSenMall
Commits
ff2b0e87
Commit
ff2b0e87
authored
Mar 13, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试能不能通
parent
c93f3b2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
bridgeToAppFun.js
H5/src/utils/bridgeToAppFun.js
+4
-0
router.vue
H5/src/views/router.vue
+3
-0
No files found.
H5/src/utils/bridgeToAppFun.js
View file @
ff2b0e87
...
...
@@ -3,8 +3,12 @@ import jsBridge from "./bridge";
// 获取Token
export
function
getAuthToken
()
{
console
.
log
(
"去调用"
);
return
new
Promise
((
resolve
,
reject
)
=>
{
console
.
log
(
"调用1"
);
jsBridge
.
callhandler
(
"getAuthToken"
,
null
,
data
=>
{
console
.
log
(
"调用2"
);
console
.
log
(
data
);
if
(
data
)
{
alert
(
"获取到的token"
+
data
);
resolve
();
...
...
H5/src/views/router.vue
View file @
ff2b0e87
...
...
@@ -38,6 +38,9 @@ export default {
}
}
});
this
.
routes
.
forEach
(
item
=>
{
console
.
log
(
item
.
meta
.
title
+
"http://8.131.244.76:81/front"
+
item
.
path
);
})
},
methods
:
{
to
(
path
)
{
...
...
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