|
@@ -11,10 +11,19 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<script setup>
|
|
|
+import { GetSysConfig_CleverIntegratedLogin } from '@/api/app';
|
|
|
+
|
|
|
+let redirect_url = '';
|
|
|
+GetSysConfig_CleverIntegratedLogin().then((res) => {
|
|
|
+ redirect_url = res.redirect_url;
|
|
|
+});
|
|
|
+
|
|
|
// 跳转到 clever 登录
|
|
|
function jumpClever() {
|
|
|
- window.location.href =
|
|
|
- 'https://clever.com/oauth/authorize?response_type=code&redirect_uri=https%3A%2F%2Fgcls.helxsoft.cn&client_id=58ca6cd43a9f74ca351f';
|
|
|
+ if (!redirect_url) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ window.location.href = `https://clever.com/oauth/authorize?response_type=code&redirect_uri=${encodeURIComponent(redirect_url)}&client_id=58ca6cd43a9f74ca351f`;
|
|
|
}
|
|
|
</script>
|
|
|
|