From b65c8d45120b60720e4933c6beaa23d6c2e254ff Mon Sep 17 00:00:00 2001
From: allworldg <944937881@qq.com>
Date: Sun, 21 Mar 2021 21:20:23 +0800
Subject: [PATCH] update ruoyi-ui/src/views/system/user/profile/userAvatar.vue.
---
ruoyi-ui/src/components/Breadcrumb/index.vue | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/ruoyi-ui/src/components/Breadcrumb/index.vue b/ruoyi-ui/src/components/Breadcrumb/index.vue
index dec8bfe..9955ad2 100644
--- a/ruoyi-ui/src/components/Breadcrumb/index.vue
+++ b/ruoyi-ui/src/components/Breadcrumb/index.vue
@@ -10,8 +10,6 @@
</template>
<script>
-import pathToRegexp from 'path-to-regexp'
-
export default {
data() {
return {
@@ -49,18 +47,13 @@
}
return name.trim() === '首页'
},
- pathCompile(path) {
- const { params } = this.$route
- var toPath = pathToRegexp.compile(path)
- return toPath(params)
- },
handleLink(item) {
const { redirect, path } = item
if (redirect) {
this.$router.push(redirect)
return
}
- this.$router.push(this.pathCompile(path))
+ this.$router.push(path)
}
}
}
--
Gitblit v1.9.2