|
@@ -151,6 +151,8 @@
|
|
|
BasicFunction.get_data("smartUsers/list?uid=" + userId, function (response) {
|
|
|
// console.log("------ Data Rcvd in getIdentityInfo --------");
|
|
|
// console.log(response);
|
|
|
+ if(response === undefined){
|
|
|
+ that.$router.push('index');}
|
|
|
if (response.ret === "10000") {
|
|
|
let t = response.model.list;
|
|
|
that.personName = t[0].name; // 左侧是vue页面内的变量名字, 右侧是后台数据里的变量名称
|
|
@@ -171,6 +173,9 @@
|
|
|
BasicFunction.get_data("smartIdentity/list?userId=" + userId, function (response) {
|
|
|
// console.log("------ Data Rcvd in getReviewInfo --------");
|
|
|
// console.log(response);
|
|
|
+ if( response === undefined){
|
|
|
+ that.$router.push('index');
|
|
|
+ }
|
|
|
if (response.ret === "10000") {
|
|
|
var t = response.model.list;
|
|
|
that.gender = ""+t[0].userSex; // 左侧是vue页面内的变量名字, 右侧是后台数据里的变量名称
|