Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
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
a4199347
authored
Jun 05, 2026
by
renyizhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取apiKey 充值流程已完成
parent
cb9ca950
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/views/console/components/token.vue
+11
-0
No files found.
src/views/console/components/token.vue
View file @
a4199347
...
...
@@ -13,6 +13,11 @@
<span
class=
"secret-text"
>
{{
maskedKey
}}
</span>
</el-tooltip>
</el-form-item>
<el-form-item
label=
"服务地址:"
>
<el-tooltip
effect=
"dark"
:content=
"baseUrl"
placement=
"top"
>
<span
class=
"secret-text"
>
{{
baseUrl
}}
</span>
</el-tooltip>
</el-form-item>
</el-form>
<el-form
:model=
"rechargeForm"
label-width=
"100px"
label-position=
"left"
>
<el-form-item
label=
"充值金额:"
>
...
...
@@ -55,6 +60,7 @@ const hasToken = ref(false);
const
balance
=
ref
(
"0.00"
);
const
apiKey
=
ref
(
""
);
const
maskedKey
=
ref
(
""
);
const
baseUrl
=
ref
(
""
);
const
rechargeLoading
=
ref
(
false
);
// 轮询相关
...
...
@@ -86,6 +92,10 @@ function loadTokenInfo() {
if
(
response
.
balance
)
{
balance
.
value
=
response
.
balance
;
}
// 显示 New API 服务地址
if
(
response
.
baseUrl
)
{
baseUrl
.
value
=
response
.
baseUrl
;
}
}
}).
catch
(()
=>
{
// 忽略错误,保持当前状态
...
...
@@ -174,6 +184,7 @@ const createQueryInterval = (rechargeId) => {
}
).
then
(()
=>
{
qrCode
.
value
.
visible
=
false
;
loadTokenInfo
()
});
}
...
...
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