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
a2e8bcf4
authored
Sep 15, 2025
by
lijinqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appid和secret展示处理
parent
74f679c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
5 deletions
+35
-5
src/views/console/overview.vue
+35
-5
No files found.
src/views/console/overview.vue
View file @
a2e8bcf4
...
...
@@ -105,13 +105,34 @@
<span>
AppId和AppSecret
</span>
</div>
</
template
>
<el-form-item
label=
"AppId:"
>
<div>
{{ appData.appId }}
</div>
</el-form-item>
<el-form-item
label=
"AppSecret:"
>
<div>
{{ appData.appSecret }}
</div>
<el-tooltip
effect=
"dark"
:content=
"appData.appId || '-'"
placement=
"top"
v-if=
"appData.appId"
>
<span
class=
"secret-text"
>
{{ formatString(appData.appId) }}
</span>
</el-tooltip>
<span
v-else
>
-
</span>
</el-form-item>
<el-form-item
label=
"AppSecret:"
>
<el-tooltip
effect=
"dark"
:content=
"appData.appSecret || '-'"
placement=
"top"
v-if=
"appData.appSecret"
>
<span
class=
"secret-text"
>
{{ formatString(appData.appSecret) }}
</span>
</el-tooltip>
<span
v-else
>
-
</span>
</el-form-item>
</el-card>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -176,6 +197,15 @@ function handleViewReason() {
getAuditInfo
()
getAppInfo
()
// script setup 里加一个方法
function
formatString
(
str
)
{
if
(
!
str
)
return
'-'
if
(
str
.
length
<=
10
)
return
secret
// 只显示前 4 位 + ... + 后 4 位
return
`
${
str
.
slice
(
0
,
4
)}
****
${
str
.
slice
(
-
4
)}
`
}
</
script
>
<
style
scoped
lang=
"scss"
>
.remind
{
...
...
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