Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前端无法展示接口运行日志 #37

Closed
li751961845 opened this issue Dec 27, 2021 · 4 comments
Closed

前端无法展示接口运行日志 #37

li751961845 opened this issue Dec 27, 2021 · 4 comments

Comments

@li751961845
Copy link

bus.$on('ws_log', rows => {
this.onLogReceived(rows[0])})
这个ws_log是指什么呢 rows没有数据啊
@javamxd
Copy link
Collaborator

javamxd commented Dec 27, 2021

检查websocket是不是连上了,后台是不是用了devtools了,用了的话去掉就行

@li751961845
Copy link
Author

websocket的连接需要调nginx嘛,本地起项目但调用接口是dev环境的ws://localhost:8000/api/magic-api/magic/web/console拼接后一直连接不上WebSocket is closed before the connection is established.

@javamxd
Copy link
Collaborator

javamxd commented Dec 31, 2021

经过nginx的话,要配置nginx的,让其支持websocket。

@li751961845
Copy link
Author

感谢,我再调试一下吧

@javamxd javamxd closed this as completed Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants