Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-front
Commits
6339196c
Commit
6339196c
authored
Sep 24, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
a4f503e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
edit.vue
pages/document/edit.vue
+2
-3
No files found.
pages/document/edit.vue
View file @
6339196c
...
...
@@ -162,7 +162,7 @@
},
islmage
(
filename
)
{
const
extension
=
filename
.
split
(
'.'
).
pop
().
toLowerCase
();
const
imageExtensions
=
[
'jpg'
,
'jpeg'
,
'png'
,
'gif'
,
'bmp'
,
'webp'
,
'svg'
,
'mp4'
,
'3gp'
,
'avi'
,
'docx'
,
'pdf'
]
const
imageExtensions
=
[
'jpg'
,
'jpeg'
,
'png'
,
'gif'
,
'bmp'
,
'webp'
,
'svg'
,
'mp4'
,
'3gp'
,
'avi'
,
'docx'
,
'pdf'
,
'txt'
,
'xlsx'
,
'xls'
]
return
imageExtensions
.
includes
(
extension
);
},
onNavToPreview
()
{
...
...
@@ -170,11 +170,10 @@
if
(
res
.
data
.
__sys__
.
status
===
1
)
{
if
(
this
.
islmage
(
this
.
orderInfo
.
docName
)){
this
.
previewStatus
=
true
;
if
([
'docx'
,
'pdf'
].
includes
(
this
.
orderInfo
.
fileSuffix
)
){
if
([
'docx'
,
'pdf'
,
'txt'
,
'xlsx'
,
'xls'
].
includes
(
this
.
orderInfo
.
fileSuffix
)
){
let
urlStr
=
`
${
this
.
hostUrl
}
/?docId=
${
this
.
orderInfo
.
docId
}
&fileSuffix=
${
this
.
orderInfo
.
fileSuffix
}
`
window
.
open
(
urlStr
)
}
}
else
{
let
urlStr
=
this
.
assetsPath
+
'/hggp/file/download/'
+
this
.
orderInfo
.
docId
;
uni
.
downloadFile
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment