diff --git a/index.html b/index.html
index 5b88c34..efb9e60 100644
--- a/index.html
+++ b/index.html
@@ -389,6 +389,15 @@
for (const iterator of selectedCity.cii_sn_arr) {
this.getData(Object.assign({}, _param, { CITY_SN: iterator }), true);
}
+ if (this.feedbackItem.guide.length === 0
+ && this.feedbackItem.driver.length === 0
+ && this.feedbackItem.experience.length === 0
+ && this.feedbackItem.hotel.length === 0
+ ) {
+ this.error = true;
+ this.errorMsg = 'Data error.';
+ return false;
+ }
} else {
this.getData(Object.assign({}, _param, { CITY_SN: selectedCity.cii_sn }));
}
@@ -419,8 +428,10 @@
).then((res) => {
that.loading = false;
if (res.errcode !== 0) {
- that.error = true;
- that.errorMsg = 'Data error.';
+ if (continually === false) {
+ that.error = true;
+ that.errorMsg = 'Data error.';
+ }
return false;
}
that.feedbackCity[`city_${res.feedbackEvaluation[0].feedback_cii_sn}`] = res;