From d2f78cb12354eb8a3606b24c3d0cac7bdc4226e5 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期五, 09 一月 2026 16:20:15 +0800
Subject: [PATCH] string类型改any
---
src/views/dingdingLogin.vue | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/views/dingdingLogin.vue b/src/views/dingdingLogin.vue
index e2f1c3c..a27f20f 100644
--- a/src/views/dingdingLogin.vue
+++ b/src/views/dingdingLogin.vue
@@ -9,12 +9,12 @@
<script setup name="Oss" lang="ts">
import { useRoute } from 'vue-router';
import { dingdingLogin } from '@/api/system/user';
-import { setToken } from '@/utils/auth';
+import { setToken,setPlat } from '@/utils/auth';
import { ElMessage } from 'element-plus';
import { any } from 'vue-types';
-const getUserDate = async (authCode: string, code: string) => {
+const getUserDate = async (authCode: any, code: any) => {
await dingdingLogin({
authCode: authCode,
code: code
@@ -26,7 +26,7 @@
setToken(JSON.stringify(data));
window.location.href = '/index';
} else {
- ElMessage({ message: '鐧诲綍澶辫触', type: 'error' });
+ ElMessage({ message: '鏃犳潈璁块棶', type: 'error' });
setTimeout(() => {
window.location.href = '/login';
}, 3000);
@@ -39,15 +39,16 @@
});
};
onMounted(() => {
+ setPlat('dingding');
const router = useRoute();
- let code = router.query.code;
+ let code = router.query.code ;
let authCode = router.query.authCode;
if (code) {
getUserDate(authCode, code);
} else {
var mode = 'openid corpid';
window.location.href =
- 'https://login.dingtalk.com/oauth2/auth?redirect_uri=http://127.0.0.1:81/login&response_type=code&client_id=dingl5dxahaj3uzfug66&scope=' +
+ 'https://login.dingtalk.com/oauth2/auth?redirect_uri=http://171.221.173.53:8801/login&response_type=code&client_id=dingl5dxahaj3uzfug66&scope=' +
encodeURIComponent(mode) +
'&state=dddd&prompt=consent';
// // STEP3锛氬湪闇�瑕佺殑鏃跺�欙紝璋冪敤 window.DTFrameLogin 鏂规硶鏋勯�犵櫥褰曚簩缁寸爜锛屽苟澶勭悊鐧诲綍鎴愬姛鎴栧け璐ョ殑鍥炶皟銆�
@@ -93,4 +94,4 @@
// width: 300px;
// height: 300px;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.8.0