Commit fb874230 by 胡悦

bug修复

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