From 824eb40e3988aed0bc32ec144237481e4ef6a062 Mon Sep 17 00:00:00 2001 From: ch Date: Thu, 2 Feb 2023 13:59:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20sse=E6=B6=88=E6=81=AF=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++++- src/manifest.json | 5 ++++- src/static/sseMessage.html | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0f8eb32..935c590 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,8 @@ node 16.15.1 ## 运行 1、cd 到项目跟目录 2、安装依赖: npm install -3、运行h5端:npm run dev:h5 \ No newline at end of file +3、运行h5端:npm run dev:h5 + +## 修改请求前缀 +1、双击登录页的“飞滴出行,一路畅行” 进入设置页 +2、点击首页的设置进入设置页 \ No newline at end of file diff --git a/src/manifest.json b/src/manifest.json index ad9e92b..e053b40 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,12 +1,15 @@ { "name" : "飞滴出行", "appid" : "__UNI__390779D", - "description" : "", + "description" : "马士兵教育-飞滴出行乘客端", "versionName" : "1.0.0", "versionCode" : "100", "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { + "compatible" : { + "ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持 + }, "usingComponents" : true, "nvueStyleCompiler" : "uni-app", "compilerVersion" : 3, diff --git a/src/static/sseMessage.html b/src/static/sseMessage.html index ae86e3a..d5b0bb0 100644 --- a/src/static/sseMessage.html +++ b/src/static/sseMessage.html @@ -26,7 +26,7 @@ if(window.EventSource){ // 监听服务的推送的消息 source.addEventListener("message",function (e){ - content = e.data; + let content = e.data; setMessageContent(content); });