Commit 3f23c4340aeb53d629cf9a205b8efca4e107e8bc
1 parent
22109ef8
调整样式
Showing
4 changed files
with
11 additions
and
13 deletions
README.md
| @@ -28,6 +28,7 @@ cnlive-community-web-vue 中国网+智慧社区平台 | @@ -28,6 +28,7 @@ cnlive-community-web-vue 中国网+智慧社区平台 | ||
| 28 | + test.community.api.cnlive.com | 28 | + test.community.api.cnlive.com |
| 29 | + test.community.web.cnlive.com | 29 | + test.community.web.cnlive.com |
| 30 | + 服务器地址:120.92.119.11 | 30 | + 服务器地址:120.92.119.11 |
| 31 | + + 服务器项目位置:cd /cnlive/cnlive-community-web-vue | ||
| 31 | + 账号:root | 32 | + 账号:root |
| 32 | + 密码:du=K0dB1z | 33 | + 密码:du=K0dB1z |
| 33 | 34 | ||
| @@ -36,6 +37,7 @@ cnlive-community-web-vue 中国网+智慧社区平台 | @@ -36,6 +37,7 @@ cnlive-community-web-vue 中国网+智慧社区平台 | ||
| 36 | ## 发布方式 | 37 | ## 发布方式 |
| 37 | 38 | ||
| 38 | ## 试用地址 | 39 | ## 试用地址 |
| 40 | + * [测试环境](http://test.community.web.cnlive.com/#/dashboard "测试环境") | ||
| 39 | 41 | ||
| 40 | ## 参考文档 | 42 | ## 参考文档 |
| 41 | + [项目仓库](http://bj.gitlab.cnlive.com/cnlive_project/cnlive-community-web-vue "项目仓库") | 43 | + [项目仓库](http://bj.gitlab.cnlive.com/cnlive_project/cnlive-community-web-vue "项目仓库") |
src/App.vue
src/layout/enter.vue
| @@ -26,16 +26,14 @@ let key = ref("/"); | @@ -26,16 +26,14 @@ let key = ref("/"); | ||
| 26 | class="view-container" | 26 | class="view-container" |
| 27 | :class="store.family.appStore().isCollapse ? 'thinMenu' : 'fatMenu'" | 27 | :class="store.family.appStore().isCollapse ? 'thinMenu' : 'fatMenu'" |
| 28 | > | 28 | > |
| 29 | - <el-scrollbar wrap-class="scrollbar-wrapper"> | ||
| 30 | - <router-view v-slot="{ Component, route }"> | ||
| 31 | - <transition :name="route.meta.transitionName"> | ||
| 32 | - <keep-alive v-if="route.meta.keepAlive"> | ||
| 33 | - <component :is="Component" /> | ||
| 34 | - </keep-alive> | ||
| 35 | - <component :is="Component" v-else /> | ||
| 36 | - </transition> | ||
| 37 | - </router-view> | ||
| 38 | - </el-scrollbar> | 29 | + <router-view v-slot="{ Component, route }"> |
| 30 | + <transition :name="route.meta.transitionName"> | ||
| 31 | + <keep-alive v-if="route.meta.keepAlive"> | ||
| 32 | + <component :is="Component" /> | ||
| 33 | + </keep-alive> | ||
| 34 | + <component :is="Component" v-else /> | ||
| 35 | + </transition> | ||
| 36 | + </router-view> | ||
| 39 | </div> | 37 | </div> |
| 40 | <!-- TIP 右侧具体页面内容结束 --> | 38 | <!-- TIP 右侧具体页面内容结束 --> |
| 41 | </div> | 39 | </div> |
src/style/menu.scss
| @@ -2,11 +2,10 @@ | @@ -2,11 +2,10 @@ | ||
| 2 | .main-container { | 2 | .main-container { |
| 3 | *zoom: 1; position: relative; | 3 | *zoom: 1; position: relative; |
| 4 | .sidebar-container { | 4 | .sidebar-container { |
| 5 | - width: $sideBarWidth; | ||
| 6 | height: 100vh; | 5 | height: 100vh; |
| 7 | position: fixed; | 6 | position: fixed; |
| 8 | left: 0; | 7 | left: 0; |
| 9 | - top: 60px; | 8 | + padding-top: 60px; |
| 10 | } | 9 | } |
| 11 | .view-container { | 10 | .view-container { |
| 12 | height: 100vh; | 11 | height: 100vh; |