Commit 0cce5bb5 authored by wanghuan's avatar wanghuan

输出打印

parent 6b4c1082
......@@ -290,12 +290,16 @@ export default {
/**LiuKexin 20210311 区分默认首页和设置首页的callback start */
let callback = res.data.callback
if (callback) {
console.log(this.isHaveHome);
console.log(this.appUrl+callback.split("#")[0] + "?token="+ res.data.token+"#"+callback.split("#")[1]);
console.log(this.appUrl+callback + '?token=' + res.data.token);
document.location.href = this.isHaveHome ?
this.appUrl+callback.split("#")[0] + "?token="+ res.data.token+"#"+callback.split("#")[1]
:
this.appUrl+callback + '?token=' + res.data.token
/**LiuKexin 20210311 区分默认首页和设置首页的callback end */
} else {
console.log(this.appUrl+this.form.callback + '?token=' + res.data.token);
document.location.href = this.appUrl+this.form.callback + '?token=' + res.data.token
}
this.setSuccess()
......
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