From dfad5868528f14df5d341611922624962cd1fb2d Mon Sep 17 00:00:00 2001 From: luobisheng <727299681@qq.com> Date: 星期五, 25 十一月 2022 17:10:45 +0800 Subject: [PATCH] 上传处置结果 --- src/views/operate/fivepack/threepack/components/updateUser/index.vue | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/operate/fivepack/threepack/components/updateUser/index.vue b/src/views/operate/fivepack/threepack/components/updateUser/index.vue index 3dc1d48..97d4bb2 100644 --- a/src/views/operate/fivepack/threepack/components/updateUser/index.vue +++ b/src/views/operate/fivepack/threepack/components/updateUser/index.vue @@ -98,23 +98,25 @@ } }, async created() { - this.$set(this, 'store', this.storeInfo); - const result = await getVideoPoint({ current: 1, size: 1 }); - this.relationVideoList = result.records; - if (this.storeInfo && this.isStorePage) { - this.store.relationVideo = this.store.videoPoint.name; - } - if (!this.isView()) { + if (this.storeInfo) { + this.$set(this, 'store', this.storeInfo); + const result = await getVideoPoint({ current: 1, size: 1 }); + this.relationVideoList = result.records; + if (this.storeInfo && this.isStorePage) { + this.store.relationVideo = this.store.videoPoint.name; + } + if (!this.isView()) { await this.getShopTypeList(); } + } }, methods: { onSubmit() { this.$refs.store.validate(valid => { if (valid) { + this.store.type = this.store.type[1]; if (this.isCreated()) { - this.store.type = this.store.type[1]; addStoreInfo(this.store) .then(() => { this.$message({ type: 'success', message: '鎿嶄綔鎴愬姛' }); -- Gitblit v1.8.0