增加版本号

busUser
wangwei 2 years ago
parent 31725f2565
commit 3c8b69bf57

@ -32,6 +32,7 @@
:item="item"
></sidebar-item>
</el-menu>
<div style="position: absolute;bottom: 15px; color:rgb(105, 105, 105);left: 35px; font-size: 11px">{{this.version}}</div>
</el-scrollbar>
<el-container
class="container-box"
@ -310,6 +311,7 @@ export default {
},
employName: "",
name: "",
version:"",
passwordFormDataRules: {
oldPassword: [
{
@ -367,6 +369,15 @@ export default {
mounted() {
},
methods: {
inquire(){
let xhr = new XMLHttpRequest()
let okStatus = document.location.protocol === "file:" ? 0 : 200;
xhr.open("GET", "version.txt", false); // public
xhr.overrideMimeType("text/html;charset=utf-8")
xhr.send(null)
this.version=xhr.responseText;
//alert(xhr.responseText) // xhr.responseText
},
toggleSideBar() {
this.$store.dispatch("ToggleSideBar");
},
@ -448,7 +459,7 @@ export default {
userInfo()
.then((response) => {
if (response.code == 20000) {
this.userInfo = response.data;
this.locInvName = this.userInfo.locInvName;
this.locSubInvName = this.userInfo.locSubInvName;
@ -562,7 +573,7 @@ export default {
this.getUserInfo();
socket.init(this)
axios.get("./config.json").then(res => {
//
this.hospitalName = res.data.hosp_name;
});

Loading…
Cancel
Save