@@ -10,17 +10,17 @@ const router = useRouter()
// 在路由跳转前启动加载动画
router.beforeEach((to, from, next) => {
- // showLoadingToast({
- // duration: 0,
- // forbidClick: true,
- // message: '加载中...',
- // });
+ showLoadingToast({
+ duration: 0,
+ forbidClick: true,
+ message: '加载中...',
+ });
next()
})
// 在路由跳转后隐藏加载动画
router.afterEach(() => {
- // closeToast();
+ closeToast();
</script>
<style >