fix(uploadClothes):修复路由跳转方法使用错误
- 将 sheep.$router.go 方法替换为 sheep.$router.redirect- 确保页面跳转行为的一致性 - 避免因方法使用不当导致的路由异常
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user