Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -148,7 +148,7 @@ export default {
|
|||||||
submit() {
|
submit() {
|
||||||
this.$refs.ruleForm.validate(v => {
|
this.$refs.ruleForm.validate(v => {
|
||||||
if (v) {
|
if (v) {
|
||||||
if(this.form.pictureUrlList.length) {
|
if(this.form.pictureUrlList && this.form.pictureUrlList.length) {
|
||||||
this.form.pictureUrl = this.form.pictureUrlList[0].url
|
this.form.pictureUrl = this.form.pictureUrlList[0].url
|
||||||
}
|
}
|
||||||
this.instance.post(`/app/apppublicityinfo/addOrUpdate`, this.form).then(res => {
|
this.instance.post(`/app/apppublicityinfo/addOrUpdate`, this.form).then(res => {
|
||||||
@@ -166,6 +166,7 @@ export default {
|
|||||||
params: {id}
|
params: {id}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
|
res.data.pictureUrlList = []
|
||||||
if(res.data.pictureUrl) {
|
if(res.data.pictureUrl) {
|
||||||
res.data.pictureUrlList = [{url: res.data.pictureUrl}]
|
res.data.pictureUrlList = [{url: res.data.pictureUrl}]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user