Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
T
topology
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
姜立玮
topology
Commits
c86dc207
提交
c86dc207
authored
4 年前
作者:
RuoYi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
移除path-to-regexp正则匹配插件
上级
ecc7a8be
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
1 行增加
和
9 行删除
+1
-9
package.json
ruoyi-ui/package.json
+0
-1
index.vue
ruoyi-ui/src/components/Breadcrumb/index.vue
+1
-8
没有找到文件。
ruoyi-ui/package.json
浏览文件 @
c86dc207
...
@@ -49,7 +49,6 @@
...
@@ -49,7 +49,6 @@
"js-cookie"
:
"2.2.1"
,
"js-cookie"
:
"2.2.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"nprogress"
:
"0.2.0"
,
"nprogress"
:
"0.2.0"
,
"path-to-regexp"
:
"6.2.0"
,
"quill"
:
"1.3.7"
,
"quill"
:
"1.3.7"
,
"screenfull"
:
"5.0.2"
,
"screenfull"
:
"5.0.2"
,
"sortablejs"
:
"1.10.2"
,
"sortablejs"
:
"1.10.2"
,
...
...
This diff is collapsed.
Click to expand it.
ruoyi-ui/src/components/Breadcrumb/index.vue
浏览文件 @
c86dc207
...
@@ -10,8 +10,6 @@
...
@@ -10,8 +10,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
pathToRegexp
from
'path-to-regexp'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -49,18 +47,13 @@ export default {
...
@@ -49,18 +47,13 @@ export default {
}
}
return
name
.
trim
()
===
'首页'
return
name
.
trim
()
===
'首页'
},
},
pathCompile
(
path
)
{
const
{
params
}
=
this
.
$route
var
toPath
=
pathToRegexp
.
compile
(
path
)
return
toPath
(
params
)
},
handleLink
(
item
)
{
handleLink
(
item
)
{
const
{
redirect
,
path
}
=
item
const
{
redirect
,
path
}
=
item
if
(
redirect
)
{
if
(
redirect
)
{
this
.
$router
.
push
(
redirect
)
this
.
$router
.
push
(
redirect
)
return
return
}
}
this
.
$router
.
push
(
this
.
pathCompile
(
path
)
)
this
.
$router
.
push
(
path
)
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论