1、发布信息成功直接跳转到我的发布的列表页面

This commit is contained in:
wangzimeng 2025-08-11 11:08:02 +08:00
parent fbd5c288c1
commit 6252f3c467

View File

@ -702,7 +702,12 @@
const res = await sheep.$api.rent.addRent(form.value) const res = await sheep.$api.rent.addRent(form.value)
if (res.code == 1) { if (res.code == 1) {
console.log('发布成功'); // console.log('');
// sheep.$helper.toast(res.msg);
uni.showToast({
title: res.msg,
icon: 'success'
})
agreeAdd.value = false; agreeAdd.value = false;
selectTagslist.value = [] selectTagslist.value = []
tagSelectedNum.value = 0; tagSelectedNum.value = 0;
@ -732,10 +737,14 @@
state.currentCityIndex = [0, 0] state.currentCityIndex = [0, 0]
console.log('currentCityIndex', state.currentCityIndex); console.log('currentCityIndex', state.currentCityIndex);
setTimeout(() => {
uni.switchTab({ uni.navigateTo({
url: '/pages/index/user' url: '/pages/user/myRelease/list'
}) })
},1000)
// uni.switchTab({
// url: '/pages/index/user'
// })
}else { }else {
sheep.$helper.toast(res.msg); sheep.$helper.toast(res.msg);
// uni.showToast({ // uni.showToast({