|
@@ -44,6 +44,7 @@ export default createStore({
|
|
|
const password = userInfo.password
|
|
|
const code = userInfo.code
|
|
|
const uuid = userInfo.uuid
|
|
|
+ const href = userInfo.href
|
|
|
return new Promise((resolve, reject) => {
|
|
|
login(username, password, code, uuid).then(res => {
|
|
|
console.log(res,'res');
|
|
@@ -56,7 +57,8 @@ export default createStore({
|
|
|
// console.log(Cookies.get('token'),'3333333')
|
|
|
window.open(
|
|
|
// "http://192.168.124.4/index?token=" +
|
|
|
- "http://mz.tshe.cn:801/index?token=" +
|
|
|
+ // http://mz.tshe.cn:801/
|
|
|
+ href + "index?token=" +
|
|
|
res.data.access_token+"&expires_in="+res.data.expires_in
|
|
|
);
|
|
|
resolve()
|