dedsudiyu 4 ay önce
ebeveyn
işleme
ad7a7143a4
1 değiştirilmiş dosya ile 6 ekleme ve 16 silme
  1. 6 16
      pages/home/index.vue

+ 6 - 16
pages/home/index.vue

@@ -45,17 +45,16 @@
 			
 		},
 		onShow(){
-			// this.systemConfigInfoGetConfigByType();
 			let url = window.location.href;
-			if(url.indexOf('code') != -1){
+			url = url.replace(new RegExp('/', 'g'), '');
+			url = url.replace(new RegExp('#', 'g'), '');
+			if(url.indexOf('code') != -1&&url.indexOf('?') != -1){
 				let codeData = {};
+				url = url.split("?")[1];
 				if(url.indexOf('&') == -1){
-					let list = url.split("?");
-					list.forEach((item) => {
-						codeData[item.split("=")[0]] = item.split("=")[1];
-					})
+					codeData[url.split("=")[0]] = url.split("=")[1];
 				}else{
-					let list = url.split("?")[1].split("&");
+					let list = url.split("&");
 					list.forEach((item) => {
 						codeData[item.split("=")[0]] = item.split("=")[1];
 					})
@@ -79,15 +78,6 @@
 					});
 				}
 			},
-			//查询公共配置
-			async systemConfigInfoGetConfigByType() {
-				const {
-					data
-				} = await systemConfigInfoGetConfigByType({ category: 2, configType: 5 });
-				if (data.code == 200) {
-					
-				}
-			},
 			//实验室详情
 			async laboratoryAppletGetSubDetailNoAuth(code) {
 				let obj = {infoId:code};