wzyyy 3 лет назад
Родитель
Сommit
cf57703dc7
2 измененных файлов с 4 добавлено и 4 удалено
  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();
     }