|
@@ -10,7 +10,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import pathToRegexp from 'path-to-regexp'
|
|
|
+import { compile } from 'path-to-regexp'
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -52,7 +52,7 @@ export default {
|
|
|
pathCompile(path) {
|
|
|
// To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
|
|
|
const { params } = this.$route
|
|
|
- var toPath = pathToRegexp.compile(path)
|
|
|
+ var toPath = compile(path)
|
|
|
return toPath(params)
|
|
|
},
|
|
|
handleLink(item) {
|