Merge branch 'main' into secondStage
# Conflicts: # src/views/dashboard/Analysis.vue # src/views/dashboard/modules/FriendLinkCard.vue # src/views/dashboard/modules/QuickEnterCard.vue # src/views/dashboard/modules/SearchAndWarningCard.vue # src/views/dashboard/modules/ToDoTaskCard.vue
This commit is contained in:
@@ -5,7 +5,7 @@ const getToken = () => Vue.ls.get(ACCESS_TOKEN)
|
||||
|
||||
// 预览pdf
|
||||
const previewPdf = (id) => {
|
||||
const url = `${window._CONFIG.domianURL}/sys/common/download/${id}?type=view&token=${getToken()}`
|
||||
const url = `${window._CONFIG.domianURL}/sys/common/view/${id}?type=view&token=${getToken()}`
|
||||
return `${process.env.BASE_URL}pdfjs/web/viewer.html?file=` + encodeURIComponent(url) + '&.pdf'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user