From b60d8a6797389cfa63b906d7b91364959866982f Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 11 Sep 2025 10:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E3=80=91=E6=96=B0=E5=BB=BA=E8=B4=A6=E5=8F=B7=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E5=8C=BB=E9=99=A2=E8=AE=BE=E7=BD=AE=E4=B8=BA?= =?UTF-8?q?=E8=81=94=E7=BD=91=EF=BC=8C=E5=88=99=E9=9A=90=E8=97=8F=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 13 +++++++++++++ src/views/system/user/components/UserInfo.vue | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) 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') }}