@@ -83,9 +83,10 @@ export default {
return h(component, {
props: {
- detail: detail,
+ detail,
...this.$attrs
- }
+ },
+ on: this.$listeners
})
}
@@ -47,7 +47,7 @@ export default {
},
submit () {
submitSchedule(this.scheduleOptions, this.programs).then(() => {
- this.$router.replace({ name: 'schedule' })
+ this.$emit('submit')
@@ -9,6 +9,7 @@
class="l-flex__auto"
:schedule="scheduleId"
editable
+ @submit="onSubmit"
/>
</wrapper>
</template>
@@ -25,6 +26,11 @@ export default {
scheduleId () {
return this.$route.params.id
+ methods: {
+ onSubmit () {
+ this.$router.replace({ name: 'schedule-list' })
+ }
</script>