|
|
@@ -142,7 +142,8 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { ref, onMounted, computed } from 'vue'
|
|
|
-import { useRoute, useRouter } from 'vue-router'
|
|
|
+import { useRoute } from 'vue-router'
|
|
|
+import { useIonRouter } from '@ionic/vue'
|
|
|
import { useWindowSize } from '@vueuse/core'
|
|
|
import toast from '@/utils/toast'
|
|
|
import { http } from '@/plugins/http'
|
|
|
@@ -156,7 +157,7 @@ import { closeOutline } from 'ionicons/icons'
|
|
|
import { showConfirmDialog } from 'vant'
|
|
|
|
|
|
const route = useRoute()
|
|
|
-const router = useRouter()
|
|
|
+const router = useIonRouter()
|
|
|
const userState = useUserStore()
|
|
|
const { t } = useI18n()
|
|
|
const info = ref({
|
|
|
@@ -220,12 +221,12 @@ const pay = () => {
|
|
|
.catch(e => {
|
|
|
if (e.code == -2) {
|
|
|
showConfirmDialog({
|
|
|
- title: this.$t('common.alert'),
|
|
|
+ title: t('common.alert'),
|
|
|
message: e.error,
|
|
|
- confirmButtonText: this.$t('balance.recharge')
|
|
|
+ confirmButtonText: t('balance.recharge')
|
|
|
})
|
|
|
.then(() => {
|
|
|
- this.$router.push({ name: 'wallet' })
|
|
|
+ router.push({ name: 'wallet' })
|
|
|
})
|
|
|
.catch(() => {})
|
|
|
} else {
|