Sfoglia il codice sorgente

更新 项目跳转

wzh 3 anni fa
parent
commit
4ca6a536a5
1 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 5 3
      src/views/toolManage/urls.vue

+ 5 - 3
src/views/toolManage/urls.vue

@@ -71,7 +71,7 @@
             <el-button
               size="small"
               type="primary"
-              @click="copy2(item.master_url)"
+              @click="copy2(item.api_url + 'swagger-ui.html#/')"
               >复制链接</el-button
             >
           </div>
@@ -157,7 +157,7 @@
             <el-button
               size="small"
               type="primary"
-              @click="copy2(item.master_url)"
+              @click="copy2(item.api_url + 'swagger-ui.html#/')"
               >复制链接</el-button
             >
           </div>
@@ -439,7 +439,9 @@ async function deleteItem(id, index, type) {
   init();
 }
 
-function goTo(url) {}
+function goTo(url) {
+  window.open(url, "_blank");
+}
 
 function copy2(url) {
   console.log(url);