|
@@ -23,7 +23,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
...weixin(['jsAuth']),
|
|
...weixin(['jsAuth']),
|
|
async init() {
|
|
async init() {
|
|
- console.log(this.$route);
|
|
|
|
|
|
+ console.log(this.$router);
|
|
const { path, query } = this.$route;
|
|
const { path, query } = this.$route;
|
|
const { openid, ...others } = query;
|
|
const { openid, ...others } = query;
|
|
let uri = `${path}`;
|
|
let uri = `${path}`;
|
|
@@ -32,7 +32,7 @@ export default {
|
|
const arr = keys.map(key => `${key}=${query[key]}`);
|
|
const arr = keys.map(key => `${key}=${query[key]}`);
|
|
uri = `${uri}?${arr.join('&')}`;
|
|
uri = `${uri}?${arr.join('&')}`;
|
|
}
|
|
}
|
|
- const url = `${this.host}${uri}`;
|
|
|
|
|
|
+ const url = `${this.host}${process.env.VUE_APP_ROUTER}${uri}`;
|
|
const res = await this.jsAuth({ url });
|
|
const res = await this.jsAuth({ url });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
const { data } = res;
|
|
const { data } = res;
|