Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
b6ad5cb4
Commit
b6ad5cb4
authored
May 02, 2018
by
scwang18
Browse files
附件预览,如果修改过服务器地址和端口,预览不可用
parent
50e9562e
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin-core/src/main/resources/templates/common/tag/attachment.tag.html
View file @
b6ad5cb4
...
...
@@ -135,8 +135,7 @@ function() {
tr
.
find
(
'
.demo-preview
'
).
on
(
'
click
'
,
function
()
{
//文件下载地址
var
file
=
encodeURIComponent
(
"
http://localhost:8080/core/file/download/
"
+
fileId
+
"
/${batchFileUUID}/
"
+
fileName
);
var
file
=
encodeURIComponent
(
"
http://
"
+
window
.
location
.
host
+
"
/core/file/download/
"
+
fileId
+
"
/${batchFileUUID}/
"
+
fileName
);
//8012为预览服务器地址,参考 https://gitee.com/kekingcn/file-online-preview 安装
Common
.
openDlg
(
"
${env('file.previewURL')}?url=
"
+
file
,
fileName
+
"
预览
"
)
//window.open("http://localhost:8012/onlinePreview?url="+file);
...
...
Write
Preview
Supports
Markdown
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