lyb пре 4 година
родитељ
комит
6031497d5a
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      pages/apply/apply.vue

+ 2 - 1
pages/apply/apply.vue

@@ -125,7 +125,8 @@
 				activeId: this.vuex_active_setting.defaultActiveId,
 				platformSettingEnum: 'ACTIVE_SETTING'
 			}
-			this.activeSetting = JSON.parse((await this.$api.platform.getPlatformValue(params)).data.data).guideRule[0];
+			let setting = JSON.parse((await this.$api.platform.getPlatformValue(params)).data.data).guideRule
+			if(!!setting) this.activeSetting = setting[0];
 			this.initData(options)
 			
 		},