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)
 			
 		},