diff --git a/src/App.vue b/src/App.vue index 8f041e0..4845157 100644 --- a/src/App.vue +++ b/src/App.vue @@ -85,6 +85,7 @@ import { } from '@/api/dictionary/dictionary' import Vue from 'vue' import i18n from './lang' +import { getHospital } from '@/api/hospital.js' export default { name: 'App', data() { @@ -102,6 +103,7 @@ export default { this.show = process.env.VUE_APP_OSS_PATH === "/hir_test/dist"; // this.show = false; Vue.prototype.$openI18n = this.openI18n + this.getInfo() }, methods: { // 排序 @@ -249,6 +251,17 @@ export default { this.tableData = Object.assign([], this.arr) } }, + // 获取医院信息 + async getInfo() { + try { + let res = await getHospital() + if (res.IsSuccess) { + Vue.prototype.$IsCanConnectInternet = res.Result.IsCanConnectInternet + } + } catch (err) { + console.log(err) + } + }, } } diff --git a/src/views/system/user/components/UserInfo.vue b/src/views/system/user/components/UserInfo.vue index cacbe9d..33533c0 100644 --- a/src/views/system/user/components/UserInfo.vue +++ b/src/views/system/user/components/UserInfo.vue @@ -73,7 +73,7 @@ - + {{ $t('system:userlist:tip:defaultPassword') }}