diff --git a/src/config.json b/src/config.json index c20e663..09c7f95 100644 --- a/src/config.json +++ b/src/config.json @@ -1,3 +1,4 @@ { - "githubLink": "https://github.com/corpglory/d3vue/" + "githubLink": "https://github.com/corpglory/d3vue/", + "d3ComponentsPath": "tree/master/src/d3-components" } diff --git a/src/router/demos.js b/src/router/demos.js index e05f67d..740c66b 100644 --- a/src/router/demos.js +++ b/src/router/demos.js @@ -15,7 +15,7 @@ export const routes = [ var res = r; res.href = "#" + r.path; res.source = config.githubLink + - 'tree/master/src/d3-components' + + config.d3ComponentsPath + r.path + '.vue' return res; })