Skip to content

Commit

Permalink
fix: 修复CI错误
Browse files Browse the repository at this point in the history
  • Loading branch information
xixiIBN5100 committed Oct 1, 2024
1 parent 26b0f02 commit 0729608
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/View/file.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
<span class="el-upload-list__item-actions">
<span
class="el-upload-list__item-preview"
@click="handlePictureCardPreview(<UploadFile>file)"
@click="handlePictureCardPreview(file as UploadFile)"
>
<el-icon><ZoomIn /></el-icon>
</span>
<span
v-if="!disabled"
class="el-upload-list__item-delete"
@click="handleRemove(<UploadFile>file)"
@click="handleRemove(file as UploadFile)"
>
<el-icon><Delete /></el-icon>
</span>
Expand All @@ -66,9 +66,9 @@

<script setup lang="ts">
import { ref, watch, defineProps, defineEmits } from 'vue';
import type { UploadFile, UploadRequestOptions } from 'element-plus'
import type { UploadFile } from 'element-plus'
import {ElMessage} from "element-plus";
import { Delete, Download, Plus, ZoomIn } from '@element-plus/icons-vue'
import { Delete, Plus, ZoomIn } from '@element-plus/icons-vue'
const dialogImageUrl = ref('')
const dialogVisible = ref(false)
Expand All @@ -81,7 +81,7 @@ const handlePictureCardPreview = (file: UploadFile) => {
}
// 处理删除
const handleRemove = (file: UploadFile) => {
const handleRemove = (uploadFile: UploadFile) => {

Check warning on line 84 in src/pages/View/file.vue

View workflow job for this annotation

GitHub Actions / CI

'uploadFile' is defined but never used
fileList.value = [] // 清空列表,确保只显示一张图片
}
Expand Down

0 comments on commit 0729608

Please sign in to comment.