Commit f1e3e580 authored by 黄奎's avatar 黄奎

页面修改

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