From 0c56f87e06a62c4c9e5d4c3a5ebc4ec139ab924e Mon Sep 17 00:00:00 2001 From: 文兵 李 <zhizu1882@outlook.com> Date: 星期一, 15 一月 2024 22:59:22 +0800 Subject: [PATCH] foreach中return并不会使其跳出循环,导致这个计算属性一直都会是false --- src/views/error/401.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/error/401.vue b/src/views/error/401.vue index 1d9c76e..968550c 100644 --- a/src/views/error/401.vue +++ b/src/views/error/401.vue @@ -24,11 +24,11 @@ let { proxy } = getCurrentInstance() as ComponentInternalInstance; -const errGif = ref(errImage + "?" + +new Date()); +const errGif = ref(errImage + '?' + +new Date()); function back() { if (proxy?.$route.query.noGoBack) { - proxy.$router.push({ path: "/" }); + proxy.$router.push({ path: '/' }); } else { proxy?.$router.go(-1); } -- Gitblit v1.9.3