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 d4dc187e
authored
Sep 20, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
35835059
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
src/views/projectApi/AddApi.vue
src/views/projectApi/AddApi.vue
View file @
d4dc187
...
...
@@ -28,7 +28,7 @@
</div>
-->
</div>
<div
class=
"option"
>
<div
class=
"name"
>
url
</div>
<div
class=
"name
required
"
>
url
</div>
<div
class=
"wrap"
>
<el-input
v-model=
"url"
placeholder=
"请输入url"
>
<template
#
prepend
>
/
</
template
>
...
...
@@ -50,7 +50,7 @@
</div>
</div>
<div
class=
"option"
>
<div
class=
"name"
>
描述
</div>
<div
class=
"name
required
"
>
描述
</div>
<div
class=
"wrap"
>
<el-input
v-model=
"remark"
placeholder=
"请输入描述"
>
</el-input>
</div>
...
...
@@ -155,9 +155,9 @@ export default defineComponent({
};
//保存代码
const
saveCodeFn
=
async
()
=>
{
if
(
!
url
.
value
||
!
method
.
value
||
!
editorContent
.
value
)
{
if
(
!
url
.
value
||
!
remark
.
value
||
!
editorContent
.
value
)
{
return
ElMessage
({
message
:
"请把信息补充完整url,
method,content
"
,
message
:
"请把信息补充完整url,
content,描述
"
,
type
:
"error"
,
});
}
...
...
@@ -288,6 +288,11 @@ export default defineComponent({
</
script
>
<
style
lang=
"scss"
>
.required
::after
{
content
:
'*'
;
display
:
inline-block
;
color
:
red
;
}
.add-api
{
display
:
flex
;
height
:
100%
;
...
...
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