添加版本号

ww
wangwei 2 years ago
parent d396bf1124
commit 1e61a63e16

@ -34,6 +34,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.version2}}</div>
</el-scrollbar> </el-scrollbar>
<el-container <el-container
class="container-box" class="container-box"
@ -295,6 +296,7 @@ export default {
}, },
employName: "", employName: "",
name: "", name: "",
version2:'',
passwordFormDataRules: { passwordFormDataRules: {
oldPassword: [ oldPassword: [
{ {
@ -359,6 +361,15 @@ export default {
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.version2=xhr.responseText;
//alert(xhr.responseText) // xhr.responseText
},
toggleSideBar() { toggleSideBar() {
this.$store.dispatch("ToggleSideBar"); this.$store.dispatch("ToggleSideBar");
}, },
@ -540,6 +551,7 @@ export default {
}, },
}, },
created() { created() {
this.inquire();
this.getBreadcrumb(); this.getBreadcrumb();
this.getCompanyData(); this.getCompanyData();
// this.getStorage(); // this.getStorage();

Loading…
Cancel
Save