|
@@ -151,7 +151,7 @@
|
|
|
BasicFunction.get_data("smartUsers/list?uid=" + userId, function (response) {
|
|
|
// console.log("------ Data Rcvd in getIdentityInfo --------");
|
|
|
// console.log(response);
|
|
|
- if(response === undefined){
|
|
|
+ if( response === undefined || response.model === undefined || response.model.list === undefined || response.model.list.length === 0){
|
|
|
that.$router.push('index');}
|
|
|
if (response.ret === "10000") {
|
|
|
let t = response.model.list;
|
|
@@ -173,7 +173,7 @@
|
|
|
BasicFunction.get_data("smartIdentity/list?userId=" + userId, function (response) {
|
|
|
// console.log("------ Data Rcvd in getReviewInfo --------");
|
|
|
// console.log(response);
|
|
|
- if( response === undefined){
|
|
|
+ if( response === undefined || response.model === undefined || response.model.list === undefined || response.model.list.length === 0){
|
|
|
that.$router.push('index');
|
|
|
}
|
|
|
if (response.ret === "10000") {
|