Technical Discussion

测试审核未通过

userHead FISH333 2023-06-16 19:28:32 187 Views0 Replies

h1h1h1h1h1h1

h2h2h2h2h2h2

h3h3h3h3h3h3

测试审核未通过测试审核未通过测试审核未通过测试审核未通过测试审核未通过

 

 

    async addActive() {
      const _this = this;
      const url = '/api/project_thumbs/add';
      const formData = new FormData();
      const postData = {
        project_id: this.key,
        token: this.token,
      };
      if (this.isLogin) {
        for (const key in postData) {
          formData.append(key, postData[key]);
        }
        await this.$axios
          .post(url, formData, { useCache: true })
          .then(function (response) {
            _this.topic.thumbs_id = response.data.data.thumbs_id;
          })
          .catch(function (error) {
            // eslint-disable-next-line no-console
            console.log(error);
          });
      } else {
        this.showDialog({
          type: 'yes',
          title: 'Login required',
          trueStr: 'OK',
        });
      }
    },