|
@@ -48,7 +48,7 @@ onLoad((options) => {
|
|
|
console.log('webview 接收参数:', options)
|
|
console.log('webview 接收参数:', options)
|
|
|
|
|
|
|
|
title.value = options.title || '文件预览'
|
|
title.value = options.title || '文件预览'
|
|
|
- const realUrl = options.url || ''
|
|
|
|
|
|
|
+ const realUrl = decodeURIComponent(options.url || '')
|
|
|
fileType.value = getFileExt(realUrl)
|
|
fileType.value = getFileExt(realUrl)
|
|
|
|
|
|
|
|
// ✅ 核心修复:PDF 只编码一次,不再二次编码
|
|
// ✅ 核心修复:PDF 只编码一次,不再二次编码
|