Commit c30b7411 authored by leiqingsong's avatar leiqingsong

测试token

parent 6c1550fc
......@@ -3,12 +3,13 @@ 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);
localStorage.setItem('token', data);
console.log("--------------");
if (data) {
alert("获取到的token" + data);
resolve();
......
......@@ -106,14 +106,13 @@ export default {
getMoneyPackage(params)
.then(res => {
if (res.code === 0) {
// console.log("res", res);
this.walletInfo = res.data;
} else {
this.$toast.fail(res.message);
}
})
.catch(error => {
console.log(error);
console.log('catch', error);
});
}
}
......
......@@ -38,9 +38,9 @@ export default {
}
}
});
this.routes.forEach(item => {
console.log(item.meta.title + "http://8.131.244.76:81/front" + item.path);
})
// this.routes.forEach(item => {
// console.log(item.meta.title + "http://8.131.244.76:81/front" + item.path);
// })
},
methods: {
to(path) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment