From e4292ee87d6d2c8b8f06304f692d98b004f90061 Mon Sep 17 00:00:00 2001 From: old burden Date: Mon, 20 Apr 2026 16:27:25 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E5=85=85=E5=80=BC=E5=8F=96=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- portal-ui/src/router/index.js | 10 ---------- portal-ui/src/views/ChangeFace.vue | 8 ++------ portal-ui/src/views/FastImage.vue | 8 ++------ portal-ui/src/views/FastVideo.vue | 8 ++------ portal-ui/src/views/Image.vue | 8 ++------ portal-ui/src/views/VideoGen.vue | 4 ++-- 6 files changed, 10 insertions(+), 36 deletions(-) diff --git a/portal-ui/src/router/index.js b/portal-ui/src/router/index.js index 0e23213..c8cda0b 100644 --- a/portal-ui/src/router/index.js +++ b/portal-ui/src/router/index.js @@ -159,16 +159,6 @@ export const constantRoutes = [{ permission: "pass", icon: 'btn_video' } - }, { - path: 'recharge', - name: 'recharge', - component: () => import('@/views/Recharge.vue'), - meta: { - title: 'recharge', - menuItem: true, - permission: "pass", - icon: 'btn_kscz' - } }, { path: 'help', name: 'help', diff --git a/portal-ui/src/views/ChangeFace.vue b/portal-ui/src/views/ChangeFace.vue index 46f1f29..293344f 100644 --- a/portal-ui/src/views/ChangeFace.vue +++ b/portal-ui/src/views/ChangeFace.vue @@ -240,14 +240,10 @@ export default { this.imageUrl = res.msg this.showResult = true } else if (res.code == -1) { - this.$confirm({ + this.$modal.error({ title: this.$t('common.notice'), content: this.$t('common.balenceLow'), - okText: this.$t('common.confirm'), - cancelText: this.$t('common.cancel'), - onOk: (_) => { - this.$router.push('/recharge') - } + okText: this.$t('common.confirm') }) } else if (res.code == -2) { this.$modal.error({ diff --git a/portal-ui/src/views/FastImage.vue b/portal-ui/src/views/FastImage.vue index ccb4031..9759325 100644 --- a/portal-ui/src/views/FastImage.vue +++ b/portal-ui/src/views/FastImage.vue @@ -186,14 +186,10 @@ export default { this.showResult = true this.imageUrl = res.msg } else if (res.code == -1) { - this.$confirm({ + this.$modal.error({ title: this.$t('common.notice'), content: this.$t('common.balenceLow'), - okText: this.$t('common.confirm'), - cancelText: this.$t('common.cancel'), - onOk: (_) => { - this.$router.push('/recharge') - } + okText: this.$t('common.confirm') }) } else if (res.code == -2) { this.$modal.error({ diff --git a/portal-ui/src/views/FastVideo.vue b/portal-ui/src/views/FastVideo.vue index 02ae213..8391f02 100644 --- a/portal-ui/src/views/FastVideo.vue +++ b/portal-ui/src/views/FastVideo.vue @@ -565,14 +565,10 @@ export default { this.$store.dispatch('main/setPrevent', true) this.getVideo(res.data.id) } else if (res.code == -1) { - this.$confirm({ + this.$modal.error({ title: this.$t('common.notice'), content: this.$t('common.balenceLow'), - okText: this.$t('common.confirm'), - cancelText: this.$t('common.cancel'), - onOk: (_) => { - this.$router.push('/recharge') - } + okText: this.$t('common.confirm') }) } else if (res.code == -2) { this.$modal.error({ diff --git a/portal-ui/src/views/Image.vue b/portal-ui/src/views/Image.vue index a623579..dedd889 100644 --- a/portal-ui/src/views/Image.vue +++ b/portal-ui/src/views/Image.vue @@ -451,14 +451,10 @@ export default { this.imageUrl = res.msg this.showResult = true } else if (res.code == -1) { - this.$confirm({ + this.$modal.error({ title: this.$t('common.notice'), content: this.$t('common.balenceLow'), - okText: this.$t('common.confirm'), - cancelText: this.$t('common.cancel'), - onOk: (_) => { - this.$router.push('/recharge') - } + okText: this.$t('common.confirm') }) } else if (res.code == -2) { this.$modal.error({ diff --git a/portal-ui/src/views/VideoGen.vue b/portal-ui/src/views/VideoGen.vue index 7382240..d0bc2f9 100644 --- a/portal-ui/src/views/VideoGen.vue +++ b/portal-ui/src/views/VideoGen.vue @@ -1237,10 +1237,10 @@ export default { this.getVideo(res.data.id) this.refreshChatFirstPage() } else if (res.code == -1) { - this.$confirm({ + this.$modal.error({ title: this.$t('common.notice'), content: this.$t('common.balenceLow'), - onOk: () => this.$router.push('/recharge') + okText: this.$t('common.confirm') }) } else { const reason = res.msg || res.message || '提交失败'