Browse Source

修改登录

huangbin 4 years ago
parent
commit
28655e282f
2 changed files with 6 additions and 3 deletions
  1. 3 1
      src/services/socket/login/index.ts
  2. 3 2
      src/views/account/login.vue

+ 3 - 1
src/services/socket/login/index.ts

@@ -27,9 +27,11 @@ export const loginAction = (logidCode: String, password: String, ClientSystemInf
                 ClientType: 4,
                 Version: '2.0.0.0',
                 DeviceID: '',
-                ClientSystemInfo,
             },
         };
+        if (ClientSystemInfo.length) {  // 与qt交互消息
+            Object.assign(params.reqParams, { ClientSystemInfo })
+        }
         const package50 = buildProtoReq50(params);
         APP.sendTradingServer(package50, undefined, {
             onSuccess: (res) => {

+ 3 - 2
src/views/account/login.vue

@@ -165,12 +165,13 @@ export default defineComponent({
         // qt
         const { getQtInfo } = qtAction();
         function loginAction() {
-            formDom.value.validate().then(() => {
+            formDom.value.
+            
+            ().then(() => {
                 loading.value = true;
                 const { account, password } = toRaw(form);
                 setLoadComplete(false);
                 getQtInfo().then((arr) => {
-                    console.log('Uint8Array', arr);
                     login(account, password, arr)
                         .then((value: any) => {
                             setLoadComplete(true);