perf: Added tooltip information to view account secret

This commit is contained in:
zhaojisen
2024-06-18 11:23:03 +08:00
parent 76b6aebac4
commit 5ea3ae3a0c
2 changed files with 10 additions and 2 deletions

View File

@@ -469,7 +469,7 @@ export default {
// 由于组件嵌套较深,有可能导致 Error in activated hook: "TypeError: Cannot read properties of undefined (reading 'getList')" 的问题
setTimeout(() => {
this.refresh()
})
}, 500)
},
methods: {
onUpdateAuthDone(account) {

View File

@@ -1,6 +1,13 @@
<template>
<div class="content">
<pre v-if="!isEdit" class="text">{{ currentValue }}</pre>
<el-tooltip
v-if="!isEdit"
:content="currentValue"
placement="top"
>
<pre class="text" style="cursor: pointer">{{ currentValue }}</pre>
</el-tooltip>
<el-input
v-else
ref="editInput"
@@ -9,6 +16,7 @@
size="small"
@blur="onEditBlur"
/>
<span v-if="realValue" class="action">
<template v-for="(item, index) in iActions">
<el-tooltip