From 410917f45431ee0465820b14d1c45bb61c8a4547 Mon Sep 17 00:00:00 2001 From: liguigong Date: Sun, 28 Sep 2025 16:44:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(uploadClothes):=E4=BF=AE=E5=A4=8D=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E8=B7=B3=E8=BD=AC=E6=96=B9=E6=B3=95=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 sheep.$router.go 方法替换为 sheep.$router.redirect- 确保页面跳转行为的一致性 - 避免因方法使用不当导致的路由异常 --- pages/uploadClothes/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/uploadClothes/index.vue b/pages/uploadClothes/index.vue index 05b3c47..a94822e 100644 --- a/pages/uploadClothes/index.vue +++ b/pages/uploadClothes/index.vue @@ -75,14 +75,14 @@ isUpdate: isEdit ? true : undefined, }) .then((res) => { - sheep.$router.go('/pages/fittingRoom/index'); + sheep.$router.redirect('/pages/fittingRoom/index'); }); } function deleteClothes() { FittingRoomApi.deleteCloth({ id: clothesId.value }).then((res) => { fittingRoomStore.currentClothes = []; - sheep.$router.go('/pages/fittingRoom/index'); + sheep.$router.redirect('/pages/fittingRoom/index'); }); }