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
Show 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 @@
...
@@ -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
...
...
src/views/projectApi/ApiList.vue
View file @
fb87423
...
@@ -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框
...
...
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