fix:上传头像修复不请求问题

This commit is contained in:
xiangheng
2023-11-26 00:34:19 +08:00
parent ff4d223f85
commit 9c4fc7fea9
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<template> <template>
<!-- v-loading="pager.loading" --> <!-- v-loading="pager.loading" -->
<div class="material"> <div class="material" v-loading="pager.loading">
<div class="material__left"> <div class="material__left">
<div class="flex-1 min-h-0"> <div class="flex-1 min-h-0">
<el-scrollbar> <el-scrollbar>
@@ -466,7 +466,7 @@ const getData = async () => {
treeRef.value?.setCurrentKey(cateId.value) treeRef.value?.setCurrentKey(cateId.value)
getFileList() getFileList()
} }
// getData()
const handlePreview = (url: string) => { const handlePreview = (url: string) => {
previewUrl.value = url previewUrl.value = url
showPreview.value = true showPreview.value = true

View File

@@ -35,6 +35,7 @@
</div> </div>
</template> </template>
</draggable> </draggable>
<!-- 没有图片时得上传按钮 -->
<div <div
class="material-upload" class="material-upload"
@click="showPopup(-1)" @click="showPopup(-1)"
@@ -64,6 +65,7 @@
<div class="material-wrap"> <div class="material-wrap">
<material <material
ref="materialRef" ref="materialRef"
mode="page"
:type="type" :type="type"
:file-size="fileSize" :file-size="fileSize"
:limit="meterialLimit" :limit="meterialLimit"
@@ -72,6 +74,7 @@
</div> </div>
</el-scrollbar> </el-scrollbar>
</popup> </popup>
<preview v-model="showPreview" :url="previewUrl" :type="type" /> <preview v-model="showPreview" :url="previewUrl" :type="type" />
</div> </div>
</template> </template>