Merge pull request #140 from jamebal/upload

chore
This commit is contained in:
jmal 2024-05-30 16:01:40 +08:00 committed by GitHub
commit 9db01ce171
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ http {
}
location /draw {
proxy_pass http://jmalcloud:8080/;
proxy_pass http://jmalcloud:8080;
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-PORT $remote_port;

View File

@ -85,7 +85,7 @@ export default {
let theme = 'kennedy'
let title = this.file.name ? encodeURIComponent(this.file.name) : ''
let query = `?title=${title}&chrome=${chrome}&lightbox=${lightbox}&ui=${theme}&lang=${language}&offline=0&pwa=0&embed=1&noLangIcon=1&noExitBtn=1&noSaveBtn=1&saveAndExit=0&spin=1&proto=json`
this.url = $J.apiUrl(`../draw${query}`)
this.url = $J.apiUrl(`../draw/?${query}`)
},
mounted() {
window.addEventListener('message', this.handleMessage)