fix(uploadClothes):修复路由跳转方法使用错误

- 将 sheep.$router.go 方法替换为 sheep.$router.redirect- 确保页面跳转行为的一致性
- 避免因方法使用不当导致的路由异常
This commit is contained in:
liguigong
2025-09-28 16:44:12 +08:00
parent 04c47a2207
commit 410917f454
+2 -2
View File
@@ -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');
});
}