|
|
@@ -2,7 +2,7 @@
|
|
|
* @Author: cyy szjbdcyy@126.com
|
|
|
* @Date: 2023-08-30 17:41:37
|
|
|
* @LastEditors: cyy szjbdcyy@126.com
|
|
|
- * @LastEditTime: 2026-01-22 10:12:13
|
|
|
+ * @LastEditTime: 2026-01-22 10:38:37
|
|
|
* @FilePath: \lh_firm_former\src\business\platform\file\file-preview\index.vue
|
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
|
-->
|
|
|
@@ -53,11 +53,11 @@ export default {
|
|
|
handler: function(val, oldVal) {
|
|
|
this.dialogVisible = this.visible
|
|
|
if (this.dialogVisible) {
|
|
|
- this.title = this.file.fileName
|
|
|
- this.fileId = this.file.id
|
|
|
- this.fileExt = this.file.ext
|
|
|
+ this.title = this.file ? this.file.fileName : ''
|
|
|
+ this.fileId = this.file ? this.file.id : ''
|
|
|
+ this.fileExt = this.file ? this.file.ext : ''
|
|
|
console.log("file-preview:this.file", this.file)
|
|
|
- this.url = previewFile(this.file.id) || ''
|
|
|
+ this.url = this.file ? previewFile(this.file.id) : ''
|
|
|
}
|
|
|
},
|
|
|
immediate: true
|