修改星球评论下载问题
parent
f2173a4489
commit
deb3a1bacc
|
@ -313,7 +313,8 @@ async function handleSelect(event: any, type: string, item: any) {
|
|||
}
|
||||
|
||||
// 下载
|
||||
function handleDownload(url: string) {
|
||||
function handleDownload(index: number, item: any) {
|
||||
const url = item.fileUrl.split(',')[index]
|
||||
const a = document.createElement('a')
|
||||
a.href = url
|
||||
a.download = url.split('/').pop() || 'downloaded_file'
|
||||
|
@ -413,7 +414,7 @@ function handleDownload(url: string) {
|
|||
:key="subIndex"
|
||||
title="点击下载"
|
||||
class="text-[#4a5563] text-sm cursor-pointer flex items-center hover:text-[#4a5563]/80 my-1"
|
||||
@click="handleDownload(subItem)"
|
||||
@click="handleDownload(subIndex, item)"
|
||||
>
|
||||
<FileChartColumn size="16" class="mr-1" />
|
||||
{{ subItem }}
|
||||
|
|
|
@ -85,9 +85,9 @@ export default defineNuxtConfig({
|
|||
preset: 'node-server',
|
||||
devProxy: {
|
||||
'/api': {
|
||||
// target: 'http://113.45.190.154:8080', // 线上
|
||||
target: 'http://113.45.190.154:8080', // 线上
|
||||
// target: 'http://192.168.2.29:8080', // 代
|
||||
target: 'http://192.168.2.21:8080', // 嗨
|
||||
// target: 'http://192.168.2.21:8080', // 嗨
|
||||
// target: 'https://2d1a399f.r27.cpolar.top', // 嗨
|
||||
changeOrigin: true,
|
||||
prependPath: true,
|
||||
|
|
Loading…
Reference in New Issue