AVUE 判断是否为空

import {validatenull} from "@/util/validate";


  // 若未登录则弹出框进行绑定
  if (validatenull(this.userInfo.userId) || this.userInfo.userId < 0) {
	this.form.name = this.userInfo.account;
	this.form.account = this.userInfo.account;
	this.accountBox = true;
  }

原文地址:https://www.cnblogs.com/guxingy/p/13902988.html