«

模板字符串使用

yang 发布于 阅读:448 项目


    deleteClick(row) {
      this.$confirm(`是否删除当前${row.userName}成员?", "提示`, {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      })
        .then(() => {
          let oParam = {
            // userId: row.userId || null,
            gatherId: this.projectUserId,
            deleteId: row.userId
          };
          console.log("🚀 ~ modifyUser ~ oParam:", oParam);
          UseroperationApi(oParam).then((res) => {
            if (res.code == "200") {
              this.$message({
                message: `删除${row.userName}成功!`,
                type: "success"
              });
              this.getUserData();
            }
          });
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消删除"
          });
        });

      console.log("🚀 ~ deleteClick ~ row:", row);
    },

模板字符串使用

版权所有:微4e
文章标题:模板字符串使用
除非注明,文章均为 微4e 原创,请勿用于任何商业用途,禁止转载

推荐阅读:


扫描二维码,在手机上阅读
请先 登录 再评论