Merge branch 'master' of gitee.com:y_project/RuoYi-Vue

This commit is contained in:
guoxing
2022-03-30 15:09:50 +08:00
11 changed files with 100 additions and 33 deletions

View File

@ -11,7 +11,7 @@ cd ruoyi-ui
npm install
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npm.taobao.org
npm install --registry=https://registry.npmmirror.com
# 启动服务
npm run dev

View File

@ -7,6 +7,6 @@ echo.
cd %~dp0
cd ..
npm install --registry=https://registry.npm.taobao.org
npm install --registry=https://registry.npmmirror.com
pause

View File

@ -30,13 +30,14 @@
<script>
import { constantRoutes } from "@/router";
// 隐藏侧边栏路由
const hideList = ['/index', '/user/profile'];
export default {
data() {
return {
// 顶部栏初始数
visibleNumber: 5,
// 是否为首次加载
isFrist: false,
// 当前激活菜单的 index
currentIndex: undefined
};
@ -88,17 +89,10 @@ export default {
activeMenu() {
const path = this.$route.path;
let activePath = path;
if (path.lastIndexOf("/") > 0) {
if (path !== undefined && path.lastIndexOf("/") > 0 && hideList.indexOf(path) === -1) {
const tmpPath = path.substring(1, path.length);
activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));
this.$store.dispatch('app/toggleSideBarHide', false);
} else if ("/index" == path || "" == path) {
if (!this.isFrist) {
this.isFrist = true;
} else {
activePath = "index";
}
this.$store.dispatch('app/toggleSideBarHide', true);
} else if(!this.$route.children) {
activePath = path;
this.$store.dispatch('app/toggleSideBarHide', true);

View File

@ -102,7 +102,7 @@ export default {
}
.sidebarHide .fixed-header {
width: calc(100%);
width: 100%;
}
.mobile .fixed-header {

View File

@ -119,10 +119,10 @@
</p>
<p>
<i class="el-icon-user-solid"></i> QQ群<s>满937441</s>
<s>满887144332</s> <s>满180251782</s> <s>满104180207</s>
<s>186866453</s> <s>201396349</s> <s>满101456076</s> <s>满101539465</s>
<a href="https://jq.qq.com/?_wv=1027&k=EI9an8lJ" target="_blank">
264312783</a
<s>满887144332</s> <s>满180251782</s> <s>满104180207</s> <s>满186866453</s>
<s>满201396349</s> <s>满101456076</s> <s>满101539465</s> <s>满264312783</s>
<a href="https://jq.qq.com/?_wv=1027&k=SWCtLnMz" target="_blank">
167385320</a
>
</p>
<p>