luobisheng
2022-11-25 dfad5868528f14df5d341611922624962cd1fb2d
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: '操作成功' });