forked from verdnatura/salix-front
refs #5255 changed time to reactive
This commit is contained in:
parent
554c09155f
commit
0096851894
|
@ -1,9 +1,9 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useI18n } from 'vue-i18n';
|
|
||||||
import { computed, ref, onMounted } from 'vue';
|
|
||||||
import { useRouter } from 'vue-router';
|
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { date, useQuasar } from 'quasar';
|
import { date, useQuasar } from 'quasar';
|
||||||
|
import { computed, onMounted, reactive, ref } from 'vue';
|
||||||
|
import { useI18n } from 'vue-i18n';
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -21,11 +21,10 @@ const expeditions = ref({});
|
||||||
const lastExpedition = ref();
|
const lastExpedition = ref();
|
||||||
const slide = ref(null);
|
const slide = ref(null);
|
||||||
const videoList = ref([]);
|
const videoList = ref([]);
|
||||||
const time = ref({
|
const time = reactive({
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 24,
|
max: 24,
|
||||||
});
|
});
|
||||||
|
|
||||||
async function fetch() {
|
async function fetch() {
|
||||||
try {
|
try {
|
||||||
const filter = {
|
const filter = {
|
||||||
|
@ -77,10 +76,8 @@ async function getVideoList(expeditionId, timed) {
|
||||||
videoList.value = list.reverse();
|
videoList.value = list.reverse();
|
||||||
if (list[0]) {
|
if (list[0]) {
|
||||||
slide.value = list[0].value;
|
slide.value = list[0].value;
|
||||||
time.value = {
|
time.min = parseInt(list[0].label.split(':')[0]);
|
||||||
min: parseInt(list[0].label.split(':')[0]),
|
time.max = parseInt(list[list.length - 1].label.split(':')[0]) + 1;
|
||||||
max: parseInt(list[list.length - 1].label.split(':')[0]) + 1,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue