Explorar o código

Update index-apply.tsx

lex-xin hai 4 meses
pai
achega
74d8b3647e
Modificáronse 1 ficheiros con 11 adicións e 8 borrados
  1. 11 8
      src/views/student-register/index-apply.tsx

+ 11 - 8
src/views/student-register/index-apply.tsx

@@ -27,6 +27,7 @@ import qs from 'query-string';
 import {
   state as baseState,
   goWechatAuth,
+  goWechatAuthTemp,
   setLogin,
   setLoginInit
 } from '@/state';
@@ -1267,14 +1268,16 @@ export default defineComponent({
 
     const getAppIdAndCode = async (url?: string) => {
       try {
-        const { data } = await request.get(
-          '/edu-app/open/paramConfig/wechatAppId'
-        );
-        // 判断是否有微信appId
-        if (data) {
-          closeToast();
-          goWechatAuth(data, url);
-        }
+        // const { data } = await request.get(
+        //   '/edu-app/open/paramConfig/wechatAppId'
+        // );
+        // // 判断是否有微信appId
+        // if (data) {
+        //   closeToast();
+        //   goWechatAuth(data, url);
+        // }
+        closeToast();
+        goWechatAuthTemp('wxccc2efd2678adbe3', url)
       } catch {
         //
       }