chore: 将drawio集成到jmalcloud镜像中

This commit is contained in:
jmal 2024-05-30 15:59:31 +08:00
parent ad4791de21
commit 35d2a22e19
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)