de9d4d19 by simon

默认提交

1 parent f6af6369
<template>
<div id="app" :lang="lang">
<v-header class="header"></v-header>
<main ref="container" class="main-container">
<main ref="container" class="main-container" :class="{'main-container-min-height':!initCss}">
<router-view />
</main>
<v-footer></v-footer>
......@@ -32,7 +32,8 @@ export default {
},
data() {
return {
lang: "zh"
lang: "zh",
initCss: false
};
},
computed: {
......@@ -76,6 +77,10 @@ export default {
this.refreshUA();
//
this.refreshProfile();
setTimeout(() => {
this.initCss = true;
}, 2000);
}
};
</script>
......@@ -346,7 +351,7 @@ textarea {
.main-container {
position: relative;
margin: 0 auto;
width: 100%;
width: 100%;
&::after {
display: table;
......@@ -355,6 +360,10 @@ textarea {
}
}
.main-container-min-height {
min-height: 600px;
}
.content {
max-width: 1200px;
width: 100%;
......
......@@ -80,10 +80,12 @@ export default {
if (this.type == "lang") {
// 如果是语言设置,则设置语言
let lang = curData.value;
this.$i18n.locale = lang;
localStorage.setItem("lang", lang);
this.sTitle = curData.name;
window.location.reload();
if (lang != localStorage.getItem('lang')) {
// this.$i18n.locale = lang;
// this.sTitle = curData.name;
localStorage.setItem("lang", lang);
window.location.reload();
}
} else {
// if (curData.value == "logout") {
// this.loginHandler();
......