wangsizhu0504 commented on issue #3496: URL: https://github.com/apache/incubator-streampark/issues/3496#issuecomment-1900103933
> > > > 目前你这个情况是 很多元素的样式缺失,或者样式优先级发生改变了,并不仅仅是这一个元素,比如左侧菜单高度应该是撑满浏览器的高度,顶部中间会有一个系统slogan , 顶部右侧用户名称那里好像也有点问题,如果你下载的是官网的release安装包,大概率不会发生这样的问题,每次发版我们都有专门的人员测试这个包的稳定性。你这个情况还是第一次得到反馈,我怀疑是编译时的错误,所以建议你用源码编译一下. > > > > > > > > > 我也是从官网下载的安装包:  > > > > > > 我下载了官网的2.1.2 版本,通过解包后,本地测试jar 包中的静态页面,并没有发现你的问题  你可以� ��过以上方式本地排查一下 > > 会不会是我下载的那个安装包有问题,你们本地用那个安装包有问题吗?我看css加载了:  不会吧我和你下载的是一样的,只不过我把jar包解开了,然后用的nginx 代理访问,你可以试一下,把 lib下的streampark-console-service-2.1.2.jar 用压缩包解压,把里面的static 放到Nginx目录下 ,然后修改nginx 的配置 ```shell location / { # 这里修改成streampark 后端启动的地址 proxy_pass http://127.0.0.1:10000/; } location ~ \.(html|css|js|png|jpg|jpeg|gif|ico|svg)$ { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Content-Security-Policy' 'frame-ancestors *'; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization'; if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization'; return 204; } rewrite ^/[^\.]*$ /index.html last; # 这里指向你放到nginx 中的 static 目录 root /opt/homebrew/var/www/streampark; index index.html index.htm; } ``` 修改完成后重启nginx 看下你的页面还有问题没 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
