mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 21:48:14 +00:00
Dodano changelog; poprawki reaktywności
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user