@pisell/pisellos 0.0.95 → 0.0.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -216,7 +216,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
216
216
  });
217
217
  if (schedule_ids_data.length) {
218
218
  schedule_ids = schedule_ids_data;
219
- } else {
219
+ } else if (schedule_date) {
220
220
  // 后端说如果 schedule_ids 如果为空,需要给[0]
221
221
  schedule_ids = [0];
222
222
  }
@@ -165,7 +165,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
165
165
  const schedule_ids_data = this.store.schedule.getScheduleListByIds(schedule_ids).map((n) => n.id);
166
166
  if (schedule_ids_data.length) {
167
167
  schedule_ids = schedule_ids_data;
168
- } else {
168
+ } else if (schedule_date) {
169
169
  schedule_ids = [0];
170
170
  }
171
171
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.95",
4
+ "version": "0.0.96",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",