添加版本号

master
wangwei 2 years ago
parent 6638f40869
commit 218a3a77b1

@ -32,6 +32,7 @@
:item="item" :item="item"
></sidebar-item> ></sidebar-item>
</el-menu> </el-menu>
<div style="position: absolute;bottom: 22px; color: black;left: 35px; font-size: 11px">{{this.version}}</div>
</el-scrollbar> </el-scrollbar>
<el-container <el-container
@ -224,6 +225,7 @@
}, },
employName: "", employName: "",
name: "", name: "",
version:'',
passwordFormDataRules: { passwordFormDataRules: {
oldPassword: [ oldPassword: [
{ {
@ -275,6 +277,15 @@
mounted() { mounted() {
}, },
methods: { 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() { toggleSideBar() {
this.$store.dispatch("ToggleSideBar"); this.$store.dispatch("ToggleSideBar");
}, },
@ -364,6 +375,7 @@
}, },
}, },
created() { created() {
this.inquire();
this.getBreadcrumb(); this.getBreadcrumb();
this.getCompanyData(); this.getCompanyData();
bus.$on("collapse-content", (msg) => { bus.$on("collapse-content", (msg) => {

Loading…
Cancel
Save