Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陆宇天
/
config-center-front
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fb874230
authored
Jul 31, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
652ffaab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
src/views/project/Project.vue
src/views/projectApi/ApiList.vue
src/views/project/Project.vue
View file @
fb87423
...
...
@@ -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
...
...
src/views/projectApi/ApiList.vue
View file @
fb87423
...
...
@@ -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框
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment