|
@@ -8,7 +8,7 @@
|
|
|
<script>
|
|
|
import ThemePicker from "@/components/ThemePicker";
|
|
|
|
|
|
-import { authToken, authTokenThree, authLogin } from "@/api/login";
|
|
|
+import { authToken, authTokenThree, authLogin,cropLogin } from "@/api/login";
|
|
|
import { initDingH5RemoteDebug } from "dingtalk-h5-remote-debug";
|
|
|
import { openAuth } from "dingtalk-design-libs/biz/openAuth";
|
|
|
import { setToken } from "@/utils/auth";
|
|
@@ -45,15 +45,10 @@ export default {
|
|
|
type: 0, // 0 标识授权个人信息;1 标识授权组织信息
|
|
|
}).then((res) => {
|
|
|
// 处理返回数据
|
|
|
- // console.log("免登res=", res);
|
|
|
- // authToken(res.result.authCode).then((res) => {
|
|
|
- // let userInfo = res.sysUser;
|
|
|
- // setToken(res.token);
|
|
|
- // that.$store.commit("SET_TOKEN", res.token);
|
|
|
- // console.log("----钉钉环境----");
|
|
|
- // that.toTargetPage();
|
|
|
- // });
|
|
|
- authLogin({ code: res.code, corpId: corpId }).then((res) => {
|
|
|
+ console.log("统一授权套件SDK==res=", res);
|
|
|
+ //cropLogin
|
|
|
+ //authLogin
|
|
|
+ authLogin({ code: res.result.authCode, corpId: corpId }).then((res) => {
|
|
|
// console.log("===authLogin_res=", res);
|
|
|
// let userInfo = res.sysUser;
|
|
|
setToken(res.msg);
|