11wqe1 2 viikkoa sitten
vanhempi
commit
b9f400a1db
1 muutettua tiedostoa jossa 8 lisäystä ja 8 poistoa
  1. 8 8
      src/api/user.js

+ 8 - 8
src/api/user.js

@@ -4,15 +4,15 @@ import { baseApi } from '@/config'
 
 // 用户信息 post 方法
 export function eduGet() {
-  // let re = parent?.location?.href.includes('hk')
-  // console.log('re',re);
+  let re = parent?.location?.href.includes('hk')
+  console.log('re',re);
 
-  // let _result =
-	// 	re
-	// 		? "https://cloud.api.cocorobo.hk/api/getcookieuserid"
-	// 		: "//beta.api.cocorobo.cn/api/getcookieuserid";
-	// return axios.get(_result);
-	return axios.get("//beta.api.cocorobo.cn/api/getcookieuserid");
+  let _result =
+		re
+			? "https://cloud.api.cocorobo.hk/api/getcookieuserid"
+			: "//beta.api.cocorobo.cn/api/getcookieuserid";
+	return axios.get(_result);
+	// return axios.get("//beta.api.cocorobo.cn/api/getcookieuserid");
 
 }
 // 获取组织