|
|
@@ -229,7 +229,7 @@ |
|
|
|
</style> |
|
|
|
<script> |
|
|
|
import BtnSmsCode from "@/components/BtnSmsCode/BtnSmsCode.vue"; |
|
|
|
import back from '@/services/back'; |
|
|
|
import system from '@/services/system'; |
|
|
|
// import { platform, PLATFORM_TYPE } from "@/utils/access"; |
|
|
|
|
|
|
|
export default { |
|
|
@@ -262,6 +262,7 @@ export default { |
|
|
|
}, |
|
|
|
created: function () { |
|
|
|
sessionStorage.login = ""; |
|
|
|
system.test(); |
|
|
|
}, |
|
|
|
mounted: function () { |
|
|
|
this.loadRemember(); |
|
|
@@ -484,28 +485,28 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
// 客户端启动服务 |
|
|
|
if (thisApp.isClient) { |
|
|
|
var userName = sessionStorage.userName; |
|
|
|
back.startService( |
|
|
|
sessionStorage.userId, |
|
|
|
sessionStorage.companyId, |
|
|
|
userName, |
|
|
|
this.pwd |
|
|
|
); |
|
|
|
if (thisApp.isRemember) { |
|
|
|
thisApp.$cookie.set("remember", true, { expires: 7 }); |
|
|
|
thisApp.$cookie.set("account", thisApp.account, { expires: 7 }); |
|
|
|
thisApp.$cookie.set("pwd", thisApp.pwd, { expires: 7 }); |
|
|
|
thisApp.$cookie.set("background", thisApp.isBackground, { |
|
|
|
expires: 7, |
|
|
|
}); |
|
|
|
} else { |
|
|
|
thisApp.$cookie.remove("remember"); |
|
|
|
thisApp.$cookie.remove("account"); |
|
|
|
thisApp.$cookie.remove("pwd"); |
|
|
|
thisApp.$cookie.remove("background"); |
|
|
|
} |
|
|
|
} |
|
|
|
// if (thisApp.isClient) { |
|
|
|
// var userName = sessionStorage.userName; |
|
|
|
// back.startService( |
|
|
|
// sessionStorage.userId, |
|
|
|
// sessionStorage.companyId, |
|
|
|
// userName, |
|
|
|
// this.pwd |
|
|
|
// ); |
|
|
|
// if (thisApp.isRemember) { |
|
|
|
// thisApp.$cookie.set("remember", true, { expires: 7 }); |
|
|
|
// thisApp.$cookie.set("account", thisApp.account, { expires: 7 }); |
|
|
|
// thisApp.$cookie.set("pwd", thisApp.pwd, { expires: 7 }); |
|
|
|
// thisApp.$cookie.set("background", thisApp.isBackground, { |
|
|
|
// expires: 7, |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// thisApp.$cookie.remove("remember"); |
|
|
|
// thisApp.$cookie.remove("account"); |
|
|
|
// thisApp.$cookie.remove("pwd"); |
|
|
|
// thisApp.$cookie.remove("background"); |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
thisApp.$router.push({ |
|
|
|
path: 'platform', |
|
|
|