Browse Source

后台搜索、详情页面的上下架api服务和消息队列接口传参修改

chaihaorui 1 year ago
parent
commit
d97d1470b4

+ 5 - 2
src/pages/index/components/entityDetail.vue

@@ -262,8 +262,11 @@ export default {
262 262
       if (this.type === 'target') {
263 263
         params.resourceType = 'index'
264 264
       }
265
-      if (this.type === 'api' || this.type === 'message') {
266
-        params.resourceType = 'service'
265
+      if (this.type === 'api') {
266
+        params.resourceType = 'api'
267
+      }
268
+      if (this.type === 'message') {
269
+        params.resourceType = 'mqs'
267 270
       }
268 271
       return params
269 272
     }

+ 1 - 1
src/pages/index/components/searchPage.vue

@@ -420,7 +420,7 @@ export default {
420 420
         params.resourceType = 'index'
421 421
       }
422 422
       if (this.activeName === 'fourth') {
423
-        params.resourceType = 'service'
423
+        params.resourceType = this.serviceType === 'API' ? 'api' : 'mqs'
424 424
       }
425 425
       return params
426 426
     },