11wqe1 3 tygodni temu
rodzic
commit
16af304c81
3 zmienionych plików z 5 dodań i 12 usunięć
  1. 0 4
      src/api/user.js
  2. 5 0
      src/common/apiConfig.js
  3. 0 8
      src/views/login/loginPage.vue

+ 0 - 4
src/api/user.js

@@ -11,10 +11,6 @@ export function GetSuffix(data) {
   return axios.post('https://api.edu.cocorobo.cn/edu/admin/selectorganize', [data])
 }
 
-export function getliyuanCode(data) {
-  return axios.post(`${baseApi}getliyuanCode`, [data])
-}
-
 export function eduLogout() {
   return axios.post('//beta.api.cocorobo.cn/api/logout')
 }

+ 5 - 0
src/common/apiConfig.js

@@ -52,6 +52,11 @@ export const API_CONFIG = {
   ajax_Suffix: {
     functionName: "select_Suffix",
   },
+
+  //查询随机码组织
+  ajax_getliyuanCode: {
+    functionName: "getliyuanCode",
+  },
   //查询学校教研室
   ajax_selectPerInfoAllTea: {
     functionName: "selectPerInfoAllTea",

+ 0 - 8
src/views/login/loginPage.vue

@@ -730,13 +730,10 @@ export default {
 								}
 							} else {
 								// admin走这里
-								// console.log('2222');
 
 								let mergedList = this.allowOrgList.reduce((acc, curr) => {
 									return [...acc, ...curr.list];
 								}, []);
-								// console.log('mergedList',mergedList);
-								// console.log('mergedList2',this.OrgOptions.filter(i=>!mergedList.includes(i.id)).length);
 
 								if (
 									this.OrgOptions.filter((i) => !mergedList.includes(i.id))
@@ -749,11 +746,6 @@ export default {
 								this.loginType = "orgL";
 								return resolve(2);
 
-								// }
-								// if (this.OrgOptions.map((i) => i.Uorg).includes("@cocorobo.cc")) {
-								// 	this.org = "@cocorobo.cc";
-								// } else {
-								// 	this.org = this.OrgOptions[0].Uorg;
 							}
 						}
 						return resolve(1);