添加版本号

busUser
wangwei 2 years ago
parent 4941a0b3cc
commit e9bd886e1f

@ -1 +1 @@
1.0.1 V-1.0.1

@ -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
class="container-box" class="container-box"
@ -190,6 +191,7 @@
<!-- >闽ICP备17019234号</a--> <!-- >闽ICP备17019234号</a-->
<!-- >--> <!-- >-->
<!-- </div>--> <!-- </div>-->
</el-container> </el-container>
@ -312,6 +314,7 @@ export default {
newPassword: "", newPassword: "",
check_new_password: "", check_new_password: "",
}, },
version:'',
employName: "", employName: "",
name: "", name: "",
passwordFormDataRules: { passwordFormDataRules: {
@ -376,6 +379,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.version=xhr.responseText;
//alert(xhr.responseText) // xhr.responseText
},
toggleSideBar() { toggleSideBar() {
this.$store.dispatch("ToggleSideBar"); this.$store.dispatch("ToggleSideBar");
}, },
@ -577,6 +589,7 @@ export default {
}, },
}, },
created() { created() {
this.inquire();
this.getBreadcrumb(); this.getBreadcrumb();
this.getCompanyData(); this.getCompanyData();
// this.getStorage(); // this.getStorage();

Loading…
Cancel
Save