增加版本号

wang
wangwei 2 years ago
parent e873ee5537
commit a8f39c2816

@ -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"
@ -290,6 +291,7 @@ export default {
}, },
employName: "", employName: "",
name: "", name: "",
version2:'',
passwordFormDataRules: { passwordFormDataRules: {
oldPassword: [ oldPassword: [
{ {
@ -348,6 +350,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");
}, },
@ -528,6 +539,7 @@ export default {
}, },
}, },
created() { created() {
this.inquire();
console.log("监听变化。,,,,,,,,,,,,,,,,,,,,,,,,,,,"); console.log("监听变化。,,,,,,,,,,,,,,,,,,,,,,,,,,,");
this.getBreadcrumb(); this.getBreadcrumb();
this.getCompanyData(); this.getCompanyData();

Loading…
Cancel
Save