mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-12-24 08:12:55 +08:00
fix:上传头像修复不请求问题
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<!-- v-loading="pager.loading" -->
|
||||
<div class="material">
|
||||
<div class="material" v-loading="pager.loading">
|
||||
<div class="material__left">
|
||||
<div class="flex-1 min-h-0">
|
||||
<el-scrollbar>
|
||||
@@ -466,7 +466,7 @@ const getData = async () => {
|
||||
treeRef.value?.setCurrentKey(cateId.value)
|
||||
getFileList()
|
||||
}
|
||||
|
||||
// getData()
|
||||
const handlePreview = (url: string) => {
|
||||
previewUrl.value = url
|
||||
showPreview.value = true
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
</div>
|
||||
</template>
|
||||
</draggable>
|
||||
<!-- 没有图片时得上传按钮 -->
|
||||
<div
|
||||
class="material-upload"
|
||||
@click="showPopup(-1)"
|
||||
@@ -64,6 +65,7 @@
|
||||
<div class="material-wrap">
|
||||
<material
|
||||
ref="materialRef"
|
||||
mode="page"
|
||||
:type="type"
|
||||
:file-size="fileSize"
|
||||
:limit="meterialLimit"
|
||||
@@ -72,6 +74,7 @@
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
</popup>
|
||||
|
||||
<preview v-model="showPreview" :url="previewUrl" :type="type" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user