Commit 6b4c1082 authored by wanghuan's avatar wanghuan

输出打印

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