diff --git a/gyxtp/src/api/api/graph.js b/gyxtp/src/api/api/graph.js index 31ca8b2..0c5b909 100644 --- a/gyxtp/src/api/api/graph.js +++ b/gyxtp/src/api/api/graph.js @@ -74,4 +74,10 @@ export const getpoinByName = (param) => { url: '/api/test/test5/'+param, method: 'get', }); +}; +export const getpoinByName = (param) => { + return request({ + url: '/api/test/test5/'+param, + method: 'get', + }); }; \ No newline at end of file diff --git a/gyxtp/src/view/small.vue b/gyxtp/src/view/small.vue index 0ddab38..fb33258 100644 --- a/gyxtp/src/view/small.vue +++ b/gyxtp/src/view/small.vue @@ -681,6 +681,8 @@ export default { // this.getAll(); // this.drawGraphData() + + getpoinByName(this.getpoinName).then((res) => { let nodes = [] let links = []