Commit 42514c01 authored by leiqingsong's avatar leiqingsong

部署测试环境

parent 3990ba15
...@@ -22,9 +22,9 @@ export default { ...@@ -22,9 +22,9 @@ export default {
this.currentTitle = val.meta.title; this.currentTitle = val.meta.title;
} }
}, },
created() { async created() {
console.log("和App开始交互"); console.log("和App开始交互");
this.$bridgeToAppFun await this.$bridgeToAppFun
.getAuthToken() .getAuthToken()
.then(res => { .then(res => {
console.log("获取到token成功", res); console.log("获取到token成功", res);
......
...@@ -92,8 +92,8 @@ export default { ...@@ -92,8 +92,8 @@ export default {
mounted() { mounted() {
console.log("读取用户信息"); console.log("读取用户信息");
this.imageBaseUrl = process.env.VUE_APP_BASE_URL; this.imageBaseUrl = process.env.VUE_APP_BASE_URL;
this.getUser();
this.getAppVersion(); this.getAppVersion();
this.getUser();
}, },
methods: { methods: {
onUpdateVersion() { onUpdateVersion() {
...@@ -121,9 +121,9 @@ export default { ...@@ -121,9 +121,9 @@ export default {
} }
}); });
}, },
getAppVersion() { async getAppVersion() {
console.log("设置里获取到的版本号", this.$bridgeToAppFun.getAppVersion()); console.log("设置里获取到的版本号", this.$bridgeToAppFun.getAppVersion());
this.version = "版本" + this.$bridgeToAppFun.getAppVersion(); this.version = "版本" + (await this.$bridgeToAppFun.getAppVersion());
}, },
getUser() { getUser() {
const params = { const params = {
......
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