fix: sse消息接收页

main
ch 3 years ago
parent 74ebf5d282
commit 824eb40e39

@ -5,3 +5,7 @@ node 16.15.1
1、cd 到项目跟目录 1、cd 到项目跟目录
2、安装依赖 npm install 2、安装依赖 npm install
3、运行h5端npm run dev:h5 3、运行h5端npm run dev:h5
## 修改请求前缀
1、双击登录页的“飞滴出行一路畅行” 进入设置页
2、点击首页的设置进入设置页

@ -1,12 +1,15 @@
{ {
"name" : "飞滴出行", "name" : "飞滴出行",
"appid" : "__UNI__390779D", "appid" : "__UNI__390779D",
"description" : "", "description" : "马士兵教育-飞滴出行乘客端",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : "100", "versionCode" : "100",
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {
"compatible" : {
"ignoreVersion" : true //trueHBuilderX1.9.0
},
"usingComponents" : true, "usingComponents" : true,
"nvueStyleCompiler" : "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3, "compilerVersion" : 3,

@ -26,7 +26,7 @@ if(window.EventSource){
// 监听服务的推送的消息 // 监听服务的推送的消息
source.addEventListener("message",function (e){ source.addEventListener("message",function (e){
content = e.data; let content = e.data;
setMessageContent(content); setMessageContent(content);
}); });

Loading…
Cancel
Save