Merge branch 'develop' of http://25.13.9.101:9000/K17_AITS/tra-app into develop

This commit is contained in:
田岩
2025-09-22 14:56:56 +08:00
4 changed files with 19 additions and 12 deletions
+6 -2
View File
@@ -14,12 +14,14 @@
<script setup>
import {
ref,
unref,
onMounted,
computed,
watch
} from 'vue'
import {
getToken
getToken,
getUserInfo
} from "@/common/common.js"
import {
downloadFile
@@ -49,6 +51,8 @@
showView.value = false
}
})
const userInfo = ref(getUserInfo());
const userParams = '/' + (unref(userInfo)?.userName??'') + ' ' + (unref(userInfo)?.loginName??'');
const base_url = get_base_url('/traask/traFilePreview/')
const showUrl = ref('')
const viewerUrl = ref('/static/pdf-view/web/viewer.html')
@@ -57,7 +61,7 @@
const token = getToken();
const header = {};
let _id = data?.fileId || props.fileId
let fileUrl = base_url + '/traask/traFilePreview/' + _id
let fileUrl = base_url + '/traask/traFilePreview/' + _id + userParams
if (token)
header['summary'] = token
uni.downloadFile({