修改星球评论下载问题

master
shenhan000 2025-05-12 15:07:41 +08:00
parent f2173a4489
commit deb3a1bacc
2 changed files with 5 additions and 4 deletions

View File

@ -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') const a = document.createElement('a')
a.href = url a.href = url
a.download = url.split('/').pop() || 'downloaded_file' a.download = url.split('/').pop() || 'downloaded_file'
@ -413,7 +414,7 @@ function handleDownload(url: string) {
:key="subIndex" :key="subIndex"
title="点击下载" title="点击下载"
class="text-[#4a5563] text-sm cursor-pointer flex items-center hover:text-[#4a5563]/80 my-1" 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" /> <FileChartColumn size="16" class="mr-1" />
{{ subItem }} {{ subItem }}

View File

@ -85,9 +85,9 @@ export default defineNuxtConfig({
preset: 'node-server', preset: 'node-server',
devProxy: { devProxy: {
'/api': { '/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.29:8080', // 代
target: 'http://192.168.2.21:8080', // 嗨 // target: 'http://192.168.2.21:8080', // 嗨
// target: 'https://2d1a399f.r27.cpolar.top', // 嗨 // target: 'https://2d1a399f.r27.cpolar.top', // 嗨
changeOrigin: true, changeOrigin: true,
prependPath: true, prependPath: true,