Skip to content

Commit

Permalink
fix: fix compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
RWDai committed Aug 21, 2024
1 parent db3f0f1 commit b552b88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/FileList.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { defineEmits, defineProps, nextTick, onMounted, ref, watchEffect } from 'vue'
import { defineEmits, defineProps, onMounted, ref, watchEffect } from 'vue'
import { listen } from '@tauri-apps/api/event'
import { debug } from '@tauri-apps/plugin-log'
import type { UploadProgressResp, UploadStatsResp } from './Uploader.vue'
Expand Down Expand Up @@ -68,7 +68,7 @@ onMounted(() => {
})
const handleScroll = () => {
const element: HTMLElement = scrollContainer.value;
const element = scrollContainer.value!;
if (element.scrollTop + element.clientHeight >= element.scrollHeight - 5) {
userScrolled.value = true;
} else {
Expand Down
9 changes: 4 additions & 5 deletions src/components/Uploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ import { invoke } from '@tauri-apps/api/core'
import type { FileResponse } from '@tauri-apps/plugin-dialog'
import { message, open } from '@tauri-apps/plugin-dialog'
import { debug, info } from '@tauri-apps/plugin-log'
import { nextTick, ref } from 'vue'
import { ref } from 'vue'
import { exit } from '@tauri-apps/plugin-process'
import type { FileUploadProcessParams } from '../App.vue'
import FileList from './FileList.vue'
const props = defineProps<{
upload: FileUploadProcessParams
}>()
// const props = defineProps<{
// upload: FileUploadProcessParams
// }>()
const totalStatsResp = ref<UploadStatsResp | null>(null)
const uploadedStatsResp = ref<UploadStatsResp | null>(null)
Expand Down

0 comments on commit b552b88

Please sign in to comment.