XMLWAN 5 yıl önce
ebeveyn
işleme
f7589f5754

+ 5 - 5
src/utils/admin_info_cache.js Dosyayı Görüntüle

1
-const userInfoKey = "admin_user_info"
1
+const userInfoKey = 'admin_user_info'
2
 
2
 
3
 export function getAdminUserInfoCache() {
3
 export function getAdminUserInfoCache() {
4
-    return window.sessionStorage.getItem(userInfoKey)
4
+  return window.sessionStorage.getItem(userInfoKey)
5
 }
5
 }
6
 
6
 
7
 export function cacheAdminUserInfo(infoJSONStr) {
7
 export function cacheAdminUserInfo(infoJSONStr) {
8
-    window.sessionStorage.setItem(userInfoKey, infoJSONStr)
8
+  window.sessionStorage.setItem(userInfoKey, infoJSONStr)
9
 }
9
 }
10
 
10
 
11
 export function removeAdminUserInfoCache() {
11
 export function removeAdminUserInfoCache() {
12
-    window.sessionStorage.removeItem(userInfoKey)
13
-}
12
+  window.sessionStorage.removeItem(userInfoKey)
13
+}

+ 7 - 0
src/views/layout/components/Navbar.vue Dosyayı Görüntüle

272
     },
272
     },
273
     toClick() {
273
     toClick() {
274
       window.location.href = "https://testsso.sgjyun.com/help";
274
       window.location.href = "https://testsso.sgjyun.com/help";
275
+    },
276
+    getCreatorName() {
277
+      getCreatorName().then(response => {});
275
     }
278
     }
276
   },
279
   },
277
   created() {
280
   created() {
278
     getOrgs().then(response => {
281
     getOrgs().then(response => {
279
       if (response.data.state === 1) {
282
       if (response.data.state === 1) {
280
         this.orgs = response.data.data.orgs;
283
         this.orgs = response.data.data.orgs;
284
+        console.log("org", this.orgs);
285
+        var creator = response.data.data.creator;
286
+        console.log("creator", creator);
281
         for (let i = 0; i < this.orgs.length; i++) {
287
         for (let i = 0; i < this.orgs.length; i++) {
282
           if (this.orgs[i].id == this.org_id) {
288
           if (this.orgs[i].id == this.org_id) {
283
             this.org_name = this.orgs[i].org_name;
289
             this.org_name = this.orgs[i].org_name;
285
         }
291
         }
286
       }
292
       }
287
     });
293
     });
294
+    this.getCreatorName();
288
   }
295
   }
289
 };
296
 };
290
 </script>
297
 </script>