|
@@ -282,13 +282,13 @@
|
|
|
}
|
|
|
},
|
|
|
created: function () {
|
|
|
- let userid = localStorage.getItem('frontend-userid');
|
|
|
+ let userId = localStorage.getItem('frontend-userid');
|
|
|
let that = this;
|
|
|
- if(userid == null || userid === undefined){
|
|
|
+ if(userId == null || userId === undefined){
|
|
|
this.$router.push('login');
|
|
|
return;
|
|
|
}
|
|
|
- BasicFunction.get_data('smartUsers/list?uid=' + userid, function (res) {
|
|
|
+ BasicFunction.get_data('smartUsers/list?uid=' + userId, function (res) {
|
|
|
if (res.ret === '10000') {
|
|
|
if(res.model === undefined || res.model == null || res.model.list == undefined || res.model.list.length <= 0){
|
|
|
localStorage.removeItem('frontend-userid');
|