update issues -> https://gitee.com/dromara/RuoYi-Vue-Plus/issues/I8LXAX
This commit is contained in:
parent
d08f14d86d
commit
595a521a3c
@ -35,7 +35,7 @@
|
|||||||
<span class="el-icon-document"> {{ getFileName(file.name) }} </span>
|
<span class="el-icon-document"> {{ getFileName(file.name) }} </span>
|
||||||
</el-link>
|
</el-link>
|
||||||
<div class="ele-upload-list__item-content-action">
|
<div class="ele-upload-list__item-content-action">
|
||||||
<el-link :underline="false" type="danger" @click="handleDelete(index)">删除</el-link>
|
<el-button type="danger" link @click="handleDelete(index)">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</transition-group>
|
</transition-group>
|
||||||
@ -43,8 +43,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { listByIds, delOss } from '@/api/system/oss';
|
|
||||||
import { propTypes } from '@/utils/propTypes';
|
import { propTypes } from '@/utils/propTypes';
|
||||||
|
import { delOss, listByIds } from '@/api/system/oss';
|
||||||
import { globalHeaders } from '@/utils/request';
|
import { globalHeaders } from '@/utils/request';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@ -88,12 +88,11 @@ watch(
|
|||||||
} else {
|
} else {
|
||||||
const res = await listByIds(val);
|
const res = await listByIds(val);
|
||||||
list = res.data.map((oss) => {
|
list = res.data.map((oss) => {
|
||||||
const data = {
|
return {
|
||||||
name: oss.originalName,
|
name: oss.originalName,
|
||||||
url: oss.url,
|
url: oss.url,
|
||||||
ossId: oss.ossId
|
ossId: oss.ossId
|
||||||
};
|
};
|
||||||
return data;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 然后将数组转为对象数组
|
// 然后将数组转为对象数组
|
||||||
|
Loading…
x
Reference in New Issue
Block a user