Browse Source

院区系统名称

seimin 1 year ago
parent
commit
c331fa5738
2 changed files with 5 additions and 4 deletions
  1. 1 1
      src/main.js
  2. 4 3
      src/views/AppIndex.vue

+ 1 - 1
src/main.js

@@ -3,7 +3,7 @@ import App from './App.vue'
3 3
 import router from './router'
4 4
 import './filters'
5 5
 Vue.config.productionTip = false
6
-console.info('v2.4.7');
6
+console.info('v2.4.8');
7 7
 
8 8
 import loading from './plugins/loading/loading.js';
9 9
 Vue.use(loading)

+ 4 - 3
src/views/AppIndex.vue

@@ -1479,12 +1479,13 @@ export default {
1479 1479
       this.loading1 = true;
1480 1480
       let loginUser = JSON.parse(localStorage.getItem("user"));
1481 1481
       this.userData = loginUser ? loginUser.user : [];
1482
+      let hosId = loginUser.user.currentHospital ? loginUser.user.currentHospital.id : '';
1482 1483
 
1483 1484
       this.getWorkType();
1484
-      this.getSysNameAndLogo();
1485
+      this.getSysNameAndLogo(hosId);
1485 1486
     },
1486
-    getSysNameAndLogo(){
1487
-      get("/auth/getSysNameAndLogo")
1487
+    getSysNameAndLogo(hosId){
1488
+      get("/auth/getSysNameAndLogo" + (hosId ? '?hosId=' + hosId : ''))
1488 1489
         .then((result) => {
1489 1490
           this.logoTitle = result.sysName || '';
1490 1491
           this.logoUrl = location.origin + '/file' + result.logo || '';