dengjie : 修改发布后跳转到我的发布页面
This commit is contained in:
@@ -177,8 +177,8 @@
|
||||
console.log(options.item)
|
||||
this.imgUrl = uni.getStorageSync('img_url')
|
||||
//我的发布点击修改回显数据
|
||||
if(options && options.item && uni.getStorageSync(options.item)) {
|
||||
try{
|
||||
if (options && options.item && uni.getStorageSync(options.item)) {
|
||||
try {
|
||||
let publishFormList = uni.getStorageSync(options.item)
|
||||
console.log(publishFormList.images)
|
||||
this.fileList1 = publishFormList.images.map(item => {
|
||||
@@ -189,7 +189,7 @@
|
||||
})
|
||||
console.log(this.fileList1)
|
||||
this.needsPublishForm = publishFormList
|
||||
} catch(error) {
|
||||
} catch (error) {
|
||||
this.$toast.warn(error)
|
||||
}
|
||||
}
|
||||
@@ -380,7 +380,7 @@
|
||||
if (this.fileList1.length > 0) {
|
||||
this.fileList1.map(item => {
|
||||
const url = item.url
|
||||
temp.push(url.replace(this.imgUrl+'/', ''))
|
||||
temp.push(url.replace(this.imgUrl + '/', ''))
|
||||
})
|
||||
}
|
||||
this.needsPublishForm.images = temp.join(';')
|
||||
@@ -403,7 +403,7 @@
|
||||
apiService.submitIdeasAndNeeds(data).then(res => {
|
||||
this.$toast.success('提交成功')
|
||||
console.log('esf=', res);
|
||||
if(this.needsPublishForm.id) {
|
||||
if (res.data.code == 1) {
|
||||
uni.navigateTo({
|
||||
url: '../../packageMy/myRelease/myRelease?index=' + (this.tabCurrent + 1)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user