Browse Source

院区系统名称

seimin 1 year ago
parent
commit
5fac33be8f
3 changed files with 8 additions and 6 deletions
  1. 2 2
      package.json
  2. 5 3
      src/components/AppHeader.vue
  3. 1 1
      src/main.js

+ 2 - 2
package.json

@@ -3,8 +3,8 @@
3 3
   "version": "0.1.0",
4 4
   "private": true,
5 5
   "scripts": {
6
-    "start": "vue-cli-service serve",
7
-    "build": "vue-cli-service build",
6
+    "start": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
7
+    "build": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
8 8
     "lint": "vue-cli-service lint",
9 9
     "development": "node ./upload/development.js",
10 10
     "production": "node ./upload/production.js"

+ 5 - 3
src/components/AppHeader.vue

@@ -100,8 +100,8 @@ export default {
100 100
         this.runTime()
101 101
       }, 500)
102 102
     },
103
-    getSysNameAndLogo () {
104
-      get('/auth/getSysNameAndLogo')
103
+    getSysNameAndLogo (hosId) {
104
+      get('/auth/getSysNameAndLogo' + (hosId ? '?hosId=' + hosId : ''))
105 105
         .then((result) => {
106 106
           this.logoTitle = result.largeScreenName || ''
107 107
           this.faviconUrl = location.origin + '/file' + result.favicon || ''
@@ -111,8 +111,10 @@ export default {
111 111
     }
112 112
   },
113 113
   mounted () {
114
+    const loginUser = JSON.parse(localStorage.getItem('user'))
115
+    const hosId = loginUser.user.currentHospital ? loginUser.user.currentHospital.id : ''
114 116
     this.runTime()
115
-    this.getSysNameAndLogo()
117
+    this.getSysNameAndLogo(hosId)
116 118
   },
117 119
   beforeDestroy () {
118 120
     clearTimeout(this.timer)

+ 1 - 1
src/main.js

@@ -14,7 +14,7 @@ Vue.use(fullScreenContainer)
14 14
 Vue.prototype.$moment = moment
15 15
 
16 16
 Vue.config.productionTip = false
17
-console.info('v2.4.6')
17
+console.info('v2.4.7')
18 18
 
19 19
 new Vue({
20 20
   router,