Merge branch 'master' of https://gitee.com/wjl2008_admin/tougao_web into zy-email

This commit is contained in:
2025-01-18 13:38:23 +08:00
8 changed files with 181 additions and 47 deletions

View File

@@ -123,10 +123,12 @@
};
},
created() {
if(this.$route.meta.hideSidebar){
this.collapse=false
if(!this.$route.meta.hideSidebar){
this.collapse=true
}
}else{
this.collapse=false
}
this.initORCID();
if (this.user_id == 24) {
this.daojishi = '2021.9.3 - 2021.9.30'

View File

@@ -1,7 +1,8 @@
<template>
<div class="wrapper">
<v-head></v-head>
<v-sidebar></v-sidebar>
<v-sidebar ></v-sidebar>
<div class="content-box" :class="{ 'content-collapse': collapse }">
<v-tags></v-tags>
<div class="content">
@@ -34,10 +35,12 @@ export default {
vTags
},
created() {
if(this.$route.meta.hideSidebar){
this.collapse=false
if(!this.$route.meta.hideSidebar){
this.collapse=true
}
}else{
this.collapse=false
}
bus.$on('collapse-content', (msg) => {
this.collapse = msg;
localStorage.setItem('collapse', this.collapse);

View File

@@ -636,10 +636,12 @@ export default {
}
},
created() {
if(this.$route.meta.hideSidebar){
this.collapse=false
if(!this.$route.meta.hideSidebar){
this.collapse=true
}
}else{
this.collapse=false
}
localStorage.setItem('collapse', this.collapse);
if (this.userrole == 2) {
//其余的身份(显示作者)