JSFiddle - React, Tailwind, and code Playground

HTML

<div v-if="tfa">
  <h1>Код 2fa</h1>
</div>

JavaScript

var emailLog = $("#db-email").html();

new Vue({
  el: '#twofamain',
  data: {
  	twoFactory: false
  },
  created: function () {
  	$.ajax({	
  		url: "../php/getdashboard.php",
  		type: "POST",
  		data: {
  			emailLog:emailLog
  		},
  		success: function (res){
  			var obj = JSON.parse(res);
  			this.twoFactory = Boolean(Number(obj.twofactorturn));
  			console.log(this.twoFactory);
  		}
  	});
  },
  computed: {
  	tfa: function () {
      if (this.twoFactory == true) {
        return true;
      }
      else {
        return false;
      }
		}
  }
});