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 + }) } } },