lyuis пре 7 месеци
родитељ
комит
c976cbbfa3
2 измењених фајлова са 3 додато и 4 уклоњено
  1. 1 1
      common/config.js
  2. 2 3
      pages/index/index.vue

+ 1 - 1
common/config.js

@@ -4,7 +4,7 @@ let mobile=0;
 // #ifdef APP-PLUS
 mobile=1
 //#endif
-if (process.env.NODE_ENV !== 'development'||mobile) {
+if (process.env.NODE_ENV !== 'development'||mobile||true) {
 	//正式环境
 	const ROOTPATH = "https://www.bosszan.com/sqx_fast";
 	const ROOTPATH1 = "https://www.bosszan.com/sqx_fast";

+ 2 - 3
pages/index/index.vue

@@ -759,9 +759,8 @@ export default {
 				}
 				prefer.push(tem)
 			})
-			/* this.preference.split(',').forEach((item)=>{
-				if(data.preferences.indexOf(item)<0)明天处理这里的逻辑----------------------------------------------------------------------------------------------
-			}) */
+			let preference = this.preference;
+			that.preference = preference.filter(item => data.preferences.includes(item));
 			that.directionList = prefer
 			that.preferenceChange=true
 		})