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 || '提交失败'