|
@@ -62,7 +62,7 @@
|
|
|
:fail="tipMsg"
|
|
|
showType="fail"
|
|
|
></Submit>
|
|
|
- <StartPage :showStart="showStart"/>
|
|
|
+ <StartPage v-if="showStart" :showStart="showStart"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script type="text/javascript">
|
|
@@ -148,7 +148,9 @@
|
|
|
}else{//登陆进入的
|
|
|
localStorage.removeItem('infoParam')
|
|
|
localStorage.removeItem('scan')
|
|
|
- this.getSysConfig(1);
|
|
|
+ if(localStorage.getItem("startPage") == 1){
|
|
|
+ this.showStart = true
|
|
|
+ }
|
|
|
}
|
|
|
api.getPathInfo(params).then((res)=>{
|
|
|
const result = res.data;
|
|
@@ -159,7 +161,7 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getSysConfig(flg){
|
|
|
+ getSysConfig(){
|
|
|
let query = this.$route.query
|
|
|
let hasQuery = JSON.stringify(query) == '{}';
|
|
|
const param = {
|
|
@@ -171,9 +173,8 @@
|
|
|
const datas = result.data;
|
|
|
// this.child = datas.filter((item)=>{return item.code == "constitution_show"})
|
|
|
this.$store.commit('saveSysConfig',datas)
|
|
|
- if(flg){return}
|
|
|
for(let i = 0;i < datas.length;i++){
|
|
|
- if(datas[i].code == 'homepage_show' && localStorage.getItem("startPage") !== null){
|
|
|
+ if(datas[i].code == 'homepage_show' && localStorage.getItem("startPage") === null){
|
|
|
if(+datas[i].value==1){
|
|
|
localStorage.setItem('startPage',1)
|
|
|
//显示启动页
|