lyb 4 жил өмнө
parent
commit
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)
 			
 		},