Browse Source

取消 正式环境的debug按钮

增加 微信授权code为空弹窗提示
feat
JinxChen 1 year ago
parent
commit
a6a3ecbed9
2 changed files with 8 additions and 3 deletions
  1. +2
    -2
      src/App.vue
  2. +6
    -1
      src/views/package-list/index.vue

+ 2
- 2
src/App.vue View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2022-01-19 10:08:26 * @Date: 2022-01-19 10:08:26
* @LastEditors: JinxChen * @LastEditors: JinxChen
* @LastEditTime: 2023-04-08 15:01:55
* @LastEditTime: 2023-04-08 17:05:46
* @FilePath: \TelpoH5FrontendWeb\src\App.vue * @FilePath: \TelpoH5FrontendWeb\src\App.vue
* @description: * @description:
--> -->
@@ -37,7 +37,7 @@ export default {
}); });
}, },
debug() { debug() {
if (process.env.NODE_ENV !== 'development') {
if (process.env.NODE_ENV !== 'production') {
const script = document.createElement('script'); const script = document.createElement('script');
script.src = "//cdn.jsdelivr.net/npm/eruda"; script.src = "//cdn.jsdelivr.net/npm/eruda";
document.body.appendChild(script); document.body.appendChild(script);


+ 6
- 1
src/views/package-list/index.vue View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2022-03-29 16:57:58 * @Date: 2022-03-29 16:57:58
* @LastEditors: JinxChen * @LastEditors: JinxChen
* @LastEditTime: 2023-04-08 16:52:36
* @LastEditTime: 2023-04-08 17:07:51
* @FilePath: \TelpoH5FrontendWeb\src\views\package-list\index.vue * @FilePath: \TelpoH5FrontendWeb\src\views\package-list\index.vue
* @description: TODO 小台风充值h5 * @description: TODO 小台风充值h5
--> -->
@@ -190,6 +190,11 @@ export default {
let code = url.split("&")[0]; let code = url.split("&")[0];
if (isNotNull(code)) { if (isNotNull(code)) {
this.getOpenId(code); this.getOpenId(code);
} else {
this.$dialog.confirm({
message: '系统错误,请重新进入',
showCancelButton: false
})
} }
} }
}, },


Loading…
Cancel
Save