瀏覽代碼

fix present and security verify

jason.lu 6 年之前
父節點
當前提交
e903b5be88
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      sourcecode/h5app/vue/src/views/SecurityVerify.vue

+ 3 - 3
sourcecode/h5app/vue/src/views/SecurityVerify.vue

@@ -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');