From 5dd37bde7efd81327a0be7cba5f24475c87e3c56 Mon Sep 17 00:00:00 2001 From: xiayifan Date: Tue, 3 Nov 2020 14:59:29 +0800 Subject: [PATCH] UI remove unnecessary slashes from the image URL --- mindinsight/ui/src/services/request-service.js | 2 +- mindinsight/ui/src/views/train-manage/image.vue | 2 +- mindinsight/ui/src/views/train-manage/training-dashboard.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mindinsight/ui/src/services/request-service.js b/mindinsight/ui/src/services/request-service.js index c71edd86..f8e26d3c 100644 --- a/mindinsight/ui/src/services/request-service.js +++ b/mindinsight/ui/src/services/request-service.js @@ -167,7 +167,7 @@ export default { getImageData(params) { return axios({ method: 'get', - url: '/v1/mindinsight/datavisual/image/single-image', + url: 'v1/mindinsight/datavisual/image/single-image', params: params, headers: { ignoreError: true, diff --git a/mindinsight/ui/src/views/train-manage/image.vue b/mindinsight/ui/src/views/train-manage/image.vue index 018351ad..08610052 100644 --- a/mindinsight/ui/src/views/train-manage/image.vue +++ b/mindinsight/ui/src/views/train-manage/image.vue @@ -163,7 +163,7 @@ export default { pageSizes: [8, 16, 24], // The number of records on each page is optional pageNum: 8, // Number of records on each page isReloading: false, // Manually refresh - imageBasePath: '/v1/mindinsight/datavisual/image/single-image?', // Relative path header of the picture + imageBasePath: 'v1/mindinsight/datavisual/image/single-image?', // Relative path header of the picture }; }, computed: { diff --git a/mindinsight/ui/src/views/train-manage/training-dashboard.vue b/mindinsight/ui/src/views/train-manage/training-dashboard.vue index 10cd5fb2..925605e0 100644 --- a/mindinsight/ui/src/views/train-manage/training-dashboard.vue +++ b/mindinsight/ui/src/views/train-manage/training-dashboard.vue @@ -286,7 +286,7 @@ export default { originImageDataArr: [], // List of all image data. curImageShowSample: {}, // Image object to be displayed. imageRandomLoopCount: 0, - imageBasePath: '/v1/mindinsight/datavisual/image/single-image?', // Relative path header of the picture + imageBasePath: 'v1/mindinsight/datavisual/image/single-image?', // Relative path header of the picture autoUpdateTimer: null, // Automatic refresh timer histogramTag: '', // Label of the currently displayed histogram. allGraphData: {}, // graph Original input data