|
@@ -34,6 +34,12 @@ import { storageSession } from "@pureadmin/utils";
|
|
|
// removeToken();
|
|
|
// router.replace({ path: "/login" });
|
|
|
// }
|
|
|
+
|
|
|
+//
|
|
|
+const redirectUrl = "http://webcx.test241.wanyuhengtong.com/";
|
|
|
+const appid = "ww6076e6fd4268ee31"
|
|
|
+const oauthUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${redirectUrl}&response_type=code&scope=SCOPE&state=STATE#wechat_redirect`
|
|
|
+
|
|
|
const code = ref("");
|
|
|
function testing() {
|
|
|
dd?.ready(() => {
|
|
@@ -73,11 +79,17 @@ function setcode(code) {
|
|
|
}
|
|
|
console.log(res);
|
|
|
})
|
|
|
- .catch(() => {});
|
|
|
+ .catch(() => { });
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
+ //钉钉登录
|
|
|
if (JudgeEnvironment() === "isDingDing") {
|
|
|
testing();
|
|
|
}
|
|
|
+
|
|
|
+ //企业微信登录
|
|
|
+ if (JudgeEnvironment() === "wxwork") {
|
|
|
+ window.location.href = oauthUrl;
|
|
|
+ }
|
|
|
});
|
|
|
</script>
|