|
@@ -74,11 +74,13 @@ export default {
|
|
|
iterations: {
|
|
|
immediate: true,
|
|
|
handler(iterations) {
|
|
|
- if (iterations.endTime === '未设置') {
|
|
|
- this.$set(this.iterations, 'endTime', '')
|
|
|
- }
|
|
|
- if (iterations.startTime === '未设置') {
|
|
|
- this.$set(this.iterations, 'startTime', '')
|
|
|
+ if (iterations !== null) {
|
|
|
+ if (iterations.endTime === '未设置') {
|
|
|
+ this.$set(this.iterations, 'endTime', '')
|
|
|
+ }
|
|
|
+ if (iterations.startTime === '未设置') {
|
|
|
+ this.$set(this.iterations, 'startTime', '')
|
|
|
+ }
|
|
|
}
|
|
|
this.iteration = iterations === null ? {} : this.iterations
|
|
|
}
|