From 8a4048192adbc5853c08330042212c9527ddd3e7 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Thu, 26 Aug 2021 15:29:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=EF=BC=8C=E5=8A=A8=E6=80=81=E6=8E=A7=E5=88=B6?= =?UTF-8?q?webview=20project=E7=9A=84path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 ++ .env.production | 2 ++ CHANGELOG.md | 1 + README.md | 8 ++++++++ src/config/app.js | 6 ++---- src/manifest.json | 2 +- src/pages.json | 1 - src/pages/project-webview/project-webview.vue | 4 ++-- 8 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.env.development b/.env.development index 2b26c61..860f98d 100644 --- a/.env.development +++ b/.env.development @@ -2,3 +2,5 @@ VUE_APP_NODE_ENV=development VUE_APP_BASE_URL=https://test.tall.wiki VUE_APP_API_URL=https://test.tall.wiki/gateway VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws +VUE_APP_PROJECT_PATH=https://test.tall.wiki/tall-project +VUE_APP_VERSION=v3.0.1 diff --git a/.env.production b/.env.production index 610c32d..b94da2d 100644 --- a/.env.production +++ b/.env.production @@ -2,3 +2,5 @@ VUE_APP_NODE_ENV=production VUE_APP_BASE_URL=https://www.tall.wiki VUE_APP_API_URL=https://www.tall.wiki/gateway VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws +VUE_APP_PROJECT_PATH=https://www.tall.wiki/tall-project +VUE_APP_VERSION=v3.0.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 58514bc..541cd92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - | db store | 6414c4f default plugin | 添加默认插件;项目列表;全局项目最大高度设置 | ed1d87b - | indexedDB | 687394e + modules update;network | npm包升级;网络判断,网络不好才开启本地存储 | ebf7bdc mp | 兼容小程序,去除window,document等 | 9178255 phone-bind | 验证码validate | a427250 pinch | alloy finger实现图片的pinch放大缩小 | de01343 diff --git a/README.md b/README.md index c0ba61e..4b64710 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,13 @@ # tall-mui-cli +## 发布注意事项 + +环境变量里的`VUE_APP_VERSION=v3.0.1` 如果project路径变了 或者版本升级了, 发行之前一定要跟着改 + +本项目, TALL程序主体框架升级, 或者服务端路径变化, 要修改`manifest.json` 下的 `h5.router.base` + +--- + ## 项目运行 ### 安装依赖 diff --git a/src/config/app.js b/src/config/app.js index d9068ce..7e2500c 100644 --- a/src/config/app.js +++ b/src/config/app.js @@ -1,8 +1,6 @@ -const version = '3.0.0'; - export default { - V: version, - version, + V: process.env.VUE_APP_VERSION, + version: process.env.VUE_APP_VERSION, theme: [], tokenKey: 'anyringToken', // storage token key }; diff --git a/src/manifest.json b/src/manifest.json index ed87df8..16a0a01 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,5 +1,5 @@ { - "name": "", + "name": "TALL", "appid": "wx356e01c7eb01d55d", "description": "", "versionName": "1.0.0", diff --git a/src/pages.json b/src/pages.json index 2226077..e260fc1 100644 --- a/src/pages.json +++ b/src/pages.json @@ -15,7 +15,6 @@ { "path": "pages/project-webview/project-webview", "style": { - "navigationStyle": "custom", "navigationBarTitleText": "项目详情页" } } diff --git a/src/pages/project-webview/project-webview.vue b/src/pages/project-webview/project-webview.vue index 0f66118..90baa21 100644 --- a/src/pages/project-webview/project-webview.vue +++ b/src/pages/project-webview/project-webview.vue @@ -27,8 +27,8 @@ export default { return; } - // TODO: 需要改成动态参数 - this.src = `https://test.tall.wiki/tall-project/v3.0.1/#/?u=${u}&p=${p}&url=${url}&pname=${pname}`; + const baseUrl = process.env.VUE_APP_PROJECT_PATH; + this.src = `${baseUrl}/${this.$t.app.version}/#/?u=${u}&p=${p}&url=${url}&pname=${pname}`; } }, };