瀏覽代碼

remove last fix & add a better (#700)

Clément 1 年之前
父節點
當前提交
4317c2326b
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 1 1
      camel/Output/OutputEndpointData.php
  2. 0 1
      resources/js/tryitout.js

+ 1 - 1
camel/Output/OutputEndpointData.php

@@ -144,7 +144,7 @@ class OutputEndpointData extends BaseDTO
 
     public function endpointId(): string
     {
-        return $this->httpMethods[0] . str_replace(['/', '?', '{', '}', ':', '\\', '+', '|'], '-', $this->uri);
+        return $this->httpMethods[0] . str_replace(['/', '?', '{', '}', ':', '\\', '+', '|', '.'], '-', $this->uri);
     }
 
     public function name(): string

+ 0 - 1
resources/js/tryitout.js

@@ -37,7 +37,6 @@ function getCookie(name) {
 }
 
 function tryItOut(endpointId) {
-    endpointId = endpointId.replaceAll('.', '\\.');
     document.querySelector(`#btn-tryout-${endpointId}`).hidden = true;
     document.querySelector(`#btn-canceltryout-${endpointId}`).hidden = false;
     const executeBtn = document.querySelector(`#btn-executetryout-${endpointId}`).hidden = false;