Explorar el Código

Merge pull request #646 from jetlinks/next-wzy

fix: bug
hear hace 3 años
padre
commit
41d968adfc
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 2 2
      config/proxy.ts
  2. 2 2
      src/pages/oauth/index.tsx

+ 2 - 2
config/proxy.ts

@@ -17,8 +17,8 @@ export default {
       // 测试环境
       target: 'http://120.77.179.54:8844/',
       ws: 'ws://120.77.179.54:8844/',
-      // target: 'http://192.168.32.65:8844/',
-      // ws: 'ws://192.168.32.65:8844/',
+      // target: 'http://192.168.32.65:8845/',
+      // ws: 'ws://192.168.32.65:8845/',
       //v2环境
       // ws: 'ws://47.109.52.230:8844',
       // target: 'http://47.109.52.230:8844',

+ 2 - 2
src/pages/oauth/index.tsx

@@ -66,10 +66,10 @@ const Oauth = () => {
       });
   };
   const goOAuth2 = async (data?: any) => {
-    const res = await Service.getOAuth2(params || data);
+    const res = await Service.getOAuth2(data || params);
     if (res.status === 200) {
       window.location.href = res.result;
-      console.log(res.result);
+      console.log(res.result, '222222222222');
     } else {
       getCode();
     }