|
|
@@ -2,6 +2,7 @@ import { reactive } from 'vue'
|
|
|
import { v4 } from 'uuid'
|
|
|
import { encryptAES, decryptAES } from '@/utils/crypto'
|
|
|
import { timerTask } from '@/utils/timer'
|
|
|
+import { ClientType } from '@/constants/client'
|
|
|
import { queryLoginId, login } from '@/services/api/account'
|
|
|
import { sessionData, localData } from '@/stores/storage'
|
|
|
import { loginStore, enumStore, errorInfoStore, userStore, futuresStore, accountStore } from '@/stores'
|
|
|
@@ -20,7 +21,7 @@ export function useLogin() {
|
|
|
LoginPWD: '',
|
|
|
GUID: v4(),
|
|
|
LoginType: 0,
|
|
|
- ClientType: 4,
|
|
|
+ ClientType: ClientType.None,
|
|
|
Version: '2.0.0.0',
|
|
|
DeviceID: ''
|
|
|
})
|
|
|
@@ -86,8 +87,9 @@ export function useLogin() {
|
|
|
}
|
|
|
|
|
|
// 用户登录
|
|
|
- const userLogin = async () => {
|
|
|
+ const userLogin = async (clientType: ClientType) => {
|
|
|
logining.value = true
|
|
|
+ formData.ClientType = clientType
|
|
|
try {
|
|
|
const params = { ...formData }
|
|
|
await loadBaseData()
|