Dodano changelog; poprawki reaktywności

This commit is contained in:
2022-08-20 18:07:21 +02:00
parent 6c4c33cb65
commit 9b252cf205
10 changed files with 218 additions and 84 deletions
+5 -6
View File
@@ -11,7 +11,7 @@
<li class="route" v-for="(route, i) in computedRouteList" :key="route.routeName + i">
<img @click="removeRoute(i)" class="route-delete" src="/icon-trash.svg" alt="icon trash" />
<form>
<form action="javascript:void(0);">
<div>Szlak: <input type="text" v-model="route.routeName" /></div>
<div>
<input
@@ -128,11 +128,11 @@
</div>
</template>
<script lang="ts">import { defineComponent } from 'vue';
<script lang="ts">
import { defineComponent } from 'vue';
import changeMixin from '../mixins/changeMixin';
import { useStore } from '../store';
export default defineComponent({
setup() {
return {
@@ -182,11 +182,10 @@ export default defineComponent({
mounted() {
if (this.store.currentStation) {
this.currentRoutes = this.store.currentStation.routes;
this.routeBackup = this.currentRoutes;
this.currentRoutes = this.store.currentStation.routes;
this.routeBackup = this.currentRoutes;
}
// console.log(this.currentRoutes + " git");
},
methods: {