mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Optymalizacja kodu i assetów; poprawki w działaniu
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<transition name="warning" mode="out-in">
|
||||
<div :key="historyDataStatus.status">
|
||||
<div class="journal_warning loading" v-if="isDataLoading || isDataInit">
|
||||
{{ $t('app.loading') }}
|
||||
{{ $t('app.loading') }}
|
||||
</div>
|
||||
|
||||
<div v-else-if="isDataError" class="journal_warning error">
|
||||
@@ -145,7 +145,6 @@ export default defineComponent({
|
||||
|
||||
data: () => ({
|
||||
icons: {
|
||||
loading: require('@/assets/icon-loading.svg'),
|
||||
arrow: require('@/assets/icon-arrow-asc.svg'),
|
||||
},
|
||||
|
||||
@@ -208,13 +207,12 @@ export default defineComponent({
|
||||
mounted() {
|
||||
const query = this.$route.query;
|
||||
|
||||
console.log("Mounted");
|
||||
|
||||
console.log('Mounted');
|
||||
|
||||
if (query.sceneryName || query.dispatcherName) {
|
||||
this.searchersValues[1].value = query.sceneryName?.toString() || "";
|
||||
this.searchersValues[0].value = query.dispatcherName?.toString() || "";
|
||||
|
||||
this.searchersValues[1].value = query.sceneryName?.toString() || '';
|
||||
this.searchersValues[0].value = query.dispatcherName?.toString() || '';
|
||||
|
||||
this.search();
|
||||
|
||||
return;
|
||||
@@ -265,7 +263,8 @@ export default defineComponent({
|
||||
if (
|
||||
element.getBoundingClientRect().bottom * 0.85 < window.innerHeight &&
|
||||
this.scrollDataLoaded &&
|
||||
!this.scrollNoMoreData
|
||||
!this.scrollNoMoreData &&
|
||||
window.scrollY > window.innerHeight
|
||||
)
|
||||
this.addHistoryData();
|
||||
},
|
||||
|
||||
@@ -209,7 +209,6 @@ export default defineComponent({
|
||||
|
||||
data: () => ({
|
||||
icons: {
|
||||
loading: require('@/assets/icon-loading.svg'),
|
||||
arrow: require('@/assets/icon-arrow-asc.svg'),
|
||||
},
|
||||
|
||||
@@ -297,7 +296,8 @@ export default defineComponent({
|
||||
if (
|
||||
element.getBoundingClientRect().bottom * 0.85 < window.innerHeight &&
|
||||
this.scrollDataLoaded &&
|
||||
!this.scrollNoMoreData
|
||||
!this.scrollNoMoreData &&
|
||||
window.scrollY > window.innerHeight
|
||||
)
|
||||
this.addHistoryData();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user