Răsfoiți Sursa

Merge branch 'dev' of https://github.com/wenjianzhang/go-admin-ui into dev

zhangwenjian 5 ani în urmă
părinte
comite
1f46e16b68
2 a modificat fișierele cu 6 adăugiri și 2 ștergeri
  1. 4 0
      .npmrc
  2. 2 2
      src/components/Breadcrumb/index.vue

+ 4 - 0
.npmrc

@@ -0,0 +1,4 @@
+sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
+phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/
+electron_mirror=https://npm.taobao.org/mirrors/electron/
+registry=https://registry.npm.taobao.org

+ 2 - 2
src/components/Breadcrumb/index.vue

@@ -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) {