Commit f1e3e580 authored by 黄奎's avatar 黄奎

页面修改

parent d918cf6f
......@@ -77,9 +77,9 @@ export function setUserCodeCallBack(data) {
}
export function setUserAutoLogin(data) {
return request({
url: '/QYWeChat/SetUserAutoLogin',
method: 'post',
data
})
}
return request({
url: '/QYWeChat/SetUserAutoLogin',
method: 'post',
data
})
}
\ No newline at end of file
......@@ -97,8 +97,8 @@
<script>
import {
setUserCodeCallBack,
setUserAutoLogin
setUserAutoLogin,
setUserCodeCallBack
} from "../../api/login";
export default {
meta: {
......@@ -132,11 +132,12 @@
) {
this.isAdminUser = true;
} else {
this.isAdminUser = false;
this.getWeChat();
}
} else if (this.$route.query.wxworkAutoLogin &&
this.$route.query.wxworkAutoLogin == "1") {
} else if (
this.$route.query.wxworkAutoLogin &&
this.$route.query.wxworkAutoLogin == "1"
) {
this.autoLogin();
} else {
this.autoLoginLoading = true;
......@@ -165,7 +166,6 @@
mark: "LinYangERP"
}).then(r => {
if (r.Data != "") {
alert(r.data);
location.href = r.Data;
} else {
this.showErrorMsg(
......@@ -174,17 +174,6 @@
}
});
},
goToAutoLogin() {
if (document.URL.indexOf("?loginId=") != -1) {
let url = `http://${
window.location.host
}/#/autologin?${document.URL.substring(
document.URL.indexOf("?") + 1,
document.URL.length
)}`;
document.location.href = url;
}
},
callBackUserInfo(code) {
setUserCodeCallBack({
appcode: "LinYangERP",
......
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