mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-17 05:31:13 +08:00
fix:上传头像修复不请求问题
This commit is contained in:
@@ -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
|
||||||
|
@@ -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>
|
||||||
|
Reference in New Issue
Block a user