|
|
@@ -2,7 +2,7 @@ import { createRouter, createWebHistory } from '@ionic/vue-router'
|
|
|
import TabsPage from '../views/TabsPage.vue'
|
|
|
import { Page } from './Page'
|
|
|
import { useUserStore } from '../stores/user'
|
|
|
-import { Dialog } from 'vant'
|
|
|
+import { showConfirmDialog } from 'vant'
|
|
|
|
|
|
const router = createRouter({
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
|
@@ -141,7 +141,7 @@ router.beforeEach((to, from, next) => {
|
|
|
next()
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- Dialog.confirm({
|
|
|
+ showConfirmDialog({
|
|
|
title: '提示',
|
|
|
message: '用户未登录,是否立即登录'
|
|
|
})
|