|
@@ -222,7 +222,7 @@
|
|
|
// })
|
|
|
// })
|
|
|
var appId = "wwf11426cf618e1703";//企业微信第三方的SUIT ID
|
|
|
- var url = "http://worktime.ttkuaiban.com/api/corpWXScanningAuth";//授权回调页面
|
|
|
+ var url = "https://worktime.ttkuaiban.com/api/corpWXScanningAuth";//授权回调页面
|
|
|
var weixinUrl=`https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?appid=${appId}&redirect_uri=${url}&state=0&usertype=member`;
|
|
|
window.location.href = weixinUrl;
|
|
|
},
|
|
@@ -304,7 +304,7 @@
|
|
|
},
|
|
|
tryAutoLogin() {
|
|
|
var appId = "ww4e237fd6abb635af";//企业微信第三方的SUIT ID
|
|
|
- var url = "http://worktime.ttkuaiban.com/api/corpWXAuth";//授权回调页面
|
|
|
+ var url = "https://worktime.ttkuaiban.com/api/corpWXAuth";//授权回调页面
|
|
|
var weixinUrl="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+appId+"&redirect_uri="+encodeURI(url)+"&response_type=code&scope=snsapi_base&state=1#wechat_redirect";
|
|
|
window.location.href = weixinUrl;
|
|
|
},
|
|
@@ -321,6 +321,14 @@
|
|
|
} else {
|
|
|
this.$router.push({ path: user.moduleList[0].path })
|
|
|
}
|
|
|
+ if (!path) {
|
|
|
+ path = user.moduleList[0].path;
|
|
|
+ }
|
|
|
+ //去掉链接上存在的参数
|
|
|
+ if (location.href.indexOf("?")>0) {
|
|
|
+ var newHref = location.href.split("?")[0] + '#' + (path.indexOf('/')>-1?path:('/'+path));
|
|
|
+ location.href = newHref;
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
this.$message({
|