page-spy-web
page-spy-web copied to clipboard
集成后房间列表为空
Describe the bug
在 vue-class-component
项目中的 index.html
文件中新增以下配置,
<script crossorigin="anonymous" src="http://127.0.0.1:6752/page-spy/index.min.js"></script>
<script>
window.$pageSpy = new PageSpy();
</script>
但是当在本地使用 page-spy-api
启动后,在 http://127.0.0.1:6752/room-list
中房间列表为空
项目中查看正常引入index.min.js
文件
房间列表如下:
Steps to reproduce
No response
System Info
电脑系统:macOS 13.0.1
浏览器版本:Opera 105.0.4970.21
Logs
page-spy-api
控制台并没有报错,正常请求 /api/v1/room/list
,日志如下:
INFO[0299] | 200 | 772.501µs | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=ab2ea807-fe87-491f-9c76-a33a4660ffe5
INFO[0304] | 200 | 611.851µs | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=5259308d-8b2a-45fa-ac6f-f96d9726e15b
INFO[0309] | 200 | 425.739µs | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=17647d31-cc90-49ba-9c2a-6df452cb58de
INFO[0314] | 200 | 385.25µs | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=5bd0fdb9-0366-424f-8210-d2b0f682da71
INFO[0319] | 200 | 605.52µs | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=24cd2a80-fffd-44f2-b0a8-0a3f5a6562b7
INFO[0324] | 200 | 5.870929ms | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=b1f59753-7f1a-410a-9455-07df89f81c96
INFO[0329] | 200 | 615.302µs | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=ec3149b6-b946-4f6a-9f67-6058fc52ac5f
INFO[0334] | 200 | 640.223µs | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=adfebe69-9926-4299-93ae-0567838b907c
INFO[0339] | 200 | 640.333µs | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=2621dcaf-480d-4dc6-a350-44adb71ca691
INFO[0344] | 200 | 468.144µs | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=4eedaec7-aac5-47a9-8204-abca7900b074
INFO[0349] | 200 | 615.904µs | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=9e31b0e2-bd7a-4174-ba54-306bbb542e3f
INFO[0354] | 200 | 563.644µs | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=563f68a3-58d1-412c-a66b-fe494dad06e9
INFO[0359] | 200 | 569.87µs | 127.0.0.1 | GET | /api/v1/room/list | - _module=middleware _request_id=b88a22c7-5096-4863-acfa-89ce7ca304a5
Validations
- [X] Read the docs.
- [X] Read the Contributing Guidelines.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] The provided reproduction is a minimal reproducible example of the bug.
没看出来是什么问题,可以对比一下这个视频看看 https://www.bilibili.com/video/BV1oM4y1p7Le/?spm_id_from=333.999.0.0
没看出来是什么问题,可以对比一下这个视频看看 https://www.bilibili.com/video/BV1oM4y1p7Le/?spm_id_from=333.999.0.0
好的,我再研究研究 😂
@toplyb 可以看一下接入前端s dk 页面 websocket 有没有链接成功。