Commit 6b4c1082 authored by wanghuan's avatar wanghuan

输出打印

parent 03457f1c
......@@ -271,12 +271,15 @@ export default {
}
}).then(()=>{
getSystemUrl({app:params.app}).then((res) => {
console.log(params.app);
if (res.data.state == 'ok') {
console.log(res.data.url);
this.appUrl = res.data.url
} else {
this.$Notice.error({ title: '提示', desc: res.data.msg })
}
})
/**LiuKexin 20210311 根据用户名获取设置的首页 end */
params.username = Encrypt(params.username);
params.password = Encrypt(params.password);
......@@ -287,9 +290,7 @@ export default {
/**LiuKexin 20210311 区分默认首页和设置首页的callback start */
let callback = res.data.callback
if (callback) {
document.location.href = this.isHaveHome
?
document.location.href = this.isHaveHome ?
this.appUrl+callback.split("#")[0] + "?token="+ res.data.token+"#"+callback.split("#")[1]
:
this.appUrl+callback + '?token=' + res.data.token
......
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