|
@@ -95,10 +95,12 @@ import { LoginStateEnum, useFormValid, useLoginState } from './useLogin'
|
|
|
|
|
|
import { ref,nextTick } from 'vue';
|
|
import { ref,nextTick } from 'vue';
|
|
const appId = 'dingik345qmyhtysvs2x'
|
|
const appId = 'dingik345qmyhtysvs2x'
|
|
-const dingRedirectUrl = 'http://1.94.244.160:81/login?loginType=dingding&type=20'
|
|
|
|
|
|
+const dingRedirectUrl = 'http://1.94.244.160:91/login?loginType=dingding&type=20'
|
|
|
|
|
|
const loginType = ref('uname');
|
|
const loginType = ref('uname');
|
|
-const changeLogin = (type) => {
|
|
|
|
|
|
+const changeLogin = async (type) => {
|
|
|
|
+ console.log(loginData.loginForm.tenantName)
|
|
|
|
+ await getTenantId()
|
|
loginType.value = type;
|
|
loginType.value = type;
|
|
if (type === 'dingding') {
|
|
if (type === 'dingding') {
|
|
initDingLogin();
|
|
initDingLogin();
|
|
@@ -203,7 +205,7 @@ const loginData = reactive({
|
|
captchaEnable: import.meta.env.VITE_APP_CAPTCHA_ENABLE,
|
|
captchaEnable: import.meta.env.VITE_APP_CAPTCHA_ENABLE,
|
|
tenantEnable: import.meta.env.VITE_APP_TENANT_ENABLE,
|
|
tenantEnable: import.meta.env.VITE_APP_TENANT_ENABLE,
|
|
loginForm: {
|
|
loginForm: {
|
|
- tenantName: import.meta.env.VITE_APP_DEFAULT_LOGIN_TENANT || '',
|
|
|
|
|
|
+ tenantName: '瑞气能源',
|
|
username: import.meta.env.VITE_APP_DEFAULT_LOGIN_USERNAME || '',
|
|
username: import.meta.env.VITE_APP_DEFAULT_LOGIN_USERNAME || '',
|
|
password: import.meta.env.VITE_APP_DEFAULT_LOGIN_PASSWORD || '',
|
|
password: import.meta.env.VITE_APP_DEFAULT_LOGIN_PASSWORD || '',
|
|
captchaVerification: '',
|
|
captchaVerification: '',
|
|
@@ -211,12 +213,12 @@ const loginData = reactive({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
-const socialList = [
|
|
|
|
- { icon: 'ant-design:wechat-filled', type: 30 },
|
|
|
|
- { icon: 'ant-design:dingtalk-circle-filled', type: 20 },
|
|
|
|
- { icon: 'ant-design:github-filled', type: 0 },
|
|
|
|
- { icon: 'ant-design:alipay-circle-filled', type: 0 }
|
|
|
|
-]
|
|
|
|
|
|
+// const socialList = [
|
|
|
|
+// { icon: 'ant-design:wechat-filled', type: 30 },
|
|
|
|
+// { icon: 'ant-design:dingtalk-circle-filled', type: 20 },
|
|
|
|
+// { icon: 'ant-design:github-filled', type: 0 },
|
|
|
|
+// { icon: 'ant-design:alipay-circle-filled', type: 0 }
|
|
|
|
+// ]
|
|
|
|
|
|
// 获取验证码
|
|
// 获取验证码
|
|
const getCode = async () => {
|
|
const getCode = async () => {
|