From a6a3ecbed91cdb00dddb1ecd24d6dd0e56447f40 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Sat, 8 Apr 2023 17:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=20=E6=AD=A3=E5=BC=8F?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E7=9A=84debug=E6=8C=89=E9=92=AE=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20=E5=BE=AE=E4=BF=A1=E6=8E=88=E6=9D=83code=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E5=BC=B9=E7=AA=97=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 ++-- src/views/package-list/index.vue | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index f0b4f39..a0db8e9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@ @@ -37,7 +37,7 @@ export default { }); }, debug() { - if (process.env.NODE_ENV !== 'development') { + if (process.env.NODE_ENV !== 'production') { const script = document.createElement('script'); script.src = "//cdn.jsdelivr.net/npm/eruda"; document.body.appendChild(script); diff --git a/src/views/package-list/index.vue b/src/views/package-list/index.vue index dd31dc3..c0f0280 100644 --- a/src/views/package-list/index.vue +++ b/src/views/package-list/index.vue @@ -1,7 +1,7 @@ @@ -190,6 +190,11 @@ export default { let code = url.split("&")[0]; if (isNotNull(code)) { this.getOpenId(code); + } else { + this.$dialog.confirm({ + message: '系统错误,请重新进入', + showCancelButton: false + }) } } },