Commit fb874230 by 胡悦

bug修复

1 parent 652ffaab
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
class="button" class="button"
v-preventReClick v-preventReClick
v-if="!item.disabled" v-if="!item.disabled"
:disabled="isShow"
type="text" type="text"
@click.stop="editFn(item)" @click.stop="editFn(item)"
>编辑</el-button >编辑</el-button
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
class="button" class="button"
v-preventReClick v-preventReClick
v-if="!item.disabled" v-if="!item.disabled"
:disabled="isShow"
type="text" type="text"
@click.stop="deleteFn(item)" @click.stop="deleteFn(item)"
>删除</el-button >删除</el-button
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-01-30 16:10:23 * @Date: 2023-01-30 16:10:23
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-25 15:03:38 * @LastEditTime: 2023-07-31 14:51:34
--> -->
<template> <template>
<div class="api-list"> <div class="api-list">
...@@ -76,7 +76,7 @@ import router from "@/router"; ...@@ -76,7 +76,7 @@ import router from "@/router";
import { ProjectApi, ProjectApiSearch, CopyProject } from "@/type/index"; import { ProjectApi, ProjectApiSearch, CopyProject } from "@/type/index";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import { getProjectApiList, projectApiDel, getCopyApi } from "@/api/projectApi"; import { getProjectApiList, projectApiDel, getCopyApi } from "@/api/projectApi";
import config from '../../config/index'
export default { export default {
name: "ApiList", name: "ApiList",
setup() { setup() {
...@@ -179,14 +179,11 @@ export default { ...@@ -179,14 +179,11 @@ export default {
} }
// 复制链接 // 复制链接
const copy = async(row: ProjectApi, env?: string) => { const copy = async(row: ProjectApi, env?: string) => {
console.log(row) let text = `${config.baseUrl.pro}/glsxAdmin/config?moduleUrl=${row.url}`
let params: CopyProject = { if (env) {
moduleUrl: row.url text += `&env=${row.baseUrl}`
} }
if (env) params.env = row.baseUrl copyText(text)
let { code, data } = await getCopyApi(params)
console.log(data);
copyText(data)
} }
const copyText = (e: any) => { const copyText = (e: any) => {
//创建一个input框 //创建一个input框
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!