Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a305147b
authored
Sep 28, 2025
by
lijinqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api应用,新增’试用链接‘字段
parent
5d2e7a33
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletions
+7
-1
src/api/apihub/api/index.ts
+1
-0
src/views/Profile/components/ProfileUser.vue
+1
-1
src/views/apihub/api/ApiForm.vue
+5
-0
No files found.
src/api/apihub/api/index.ts
View file @
a305147b
...
...
@@ -20,6 +20,7 @@ export interface Api {
doc
:
string
;
// 接口文档内容
status
:
number
;
// 状态:1=上架,0=下架
remark
:
string
;
// 备注
trialUrl
:
string
;
// APP试用地址
apiPackages
:
ApiPackage
[];
// API 套餐列表
}
...
...
src/views/Profile/components/ProfileUser.vue
View file @
a305147b
...
...
@@ -7,7 +7,7 @@
<li
class=
"list-group-item"
>
<Icon
class=
"mr-5px"
icon=
"ep:user"
/>
{{
t
(
'profile.user.username'
)
}}
<div
class=
"pull-right"
>
{{
userInfo
?.
user
name
}}
</div>
<div
class=
"pull-right"
>
{{
userInfo
?.
nick
name
}}
</div>
</li>
<li
class=
"list-group-item"
>
<Icon
class=
"mr-5px"
icon=
"ep:phone"
/>
...
...
src/views/apihub/api/ApiForm.vue
View file @
a305147b
...
...
@@ -10,6 +10,9 @@
<el-form-item
label=
"应用名称"
prop=
"name"
>
<el-input
v-model=
"formData.name"
placeholder=
"应用名称"
/>
</el-form-item>
<el-form-item
label=
"试用地址"
prop=
"trialUrl"
>
<el-input
v-model=
"formData.trialUrl"
placeholder=
"试用地址"
/>
</el-form-item>
<!-- 分类选择 -->
<el-form-item
label=
"分类"
prop=
"categoryId"
>
<el-select
v-model=
"formData.categoryId"
placeholder=
"请选择分类"
style=
"width: 100%;"
>
...
...
@@ -224,6 +227,7 @@ const formType = ref('') // 表单的类型:create - 新增;update - 修改
const
formData
=
ref
({
id
:
undefined
,
name
:
''
,
trialUrl
:
''
,
categoryId
:
undefined
,
// 新增:分类id
vendor
:
undefined
,
vendorContact
:
undefined
,
...
...
@@ -383,6 +387,7 @@ const resetForm = () => {
priceInfo
:
''
,
coverImage
:
undefined
,
name
:
''
,
trialUrl
:
''
,
description
:
''
,
detail
:
''
,
doc
:
''
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment