This is an automated email from the ASF dual-hosted git repository.

liyang pushed a commit to branch kylin5
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/kylin5 by this push:
     new cdaf4d7d74 KYLIN-5975 Fix accepting recommendations
cdaf4d7d74 is described below

commit cdaf4d7d7499fce71302c26431979d709e575589
Author: Pengfei Zhan <[email protected]>
AuthorDate: Mon Sep 23 18:27:13 2024 +0800

    KYLIN-5975 Fix accepting recommendations
---
 kystudio/src/service/model.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kystudio/src/service/model.js b/kystudio/src/service/model.js
index 9514d89c03..394d395943 100644
--- a/kystudio/src/service/model.js
+++ b/kystudio/src/service/model.js
@@ -327,14 +327,14 @@ export default {
   },
   // 通过优化建议
   acceptRecommendations (para) {
-    return window.kapVm.$http.post(apiUrl + `recommendations/${para.modelId}`, 
para)
+    return Vue.resource(apiUrl + `recommendations/${para.modelId}`).save(para)
   },
   // 获取优化建议详情
   getRecommendDetails (para) {
     return Vue.resource(apiUrl + 
`recommendations/${para.modelId}/${para.id}`).get(para)
   },
   validateRecommend (para) {
-    return window.kapVm.$http.post(apiUrl + 
`recommendations/${para.modelId}/validation`, para)
+    return Vue.resource(apiUrl + 
`recommendations/${para.modelId}/validation`).save(para)
   },
   fetchHitModelsList (para) {
     return Vue.resource(apiUrl + 'query/query_history_models').get(para)

Reply via email to