密码明文加密
This commit is contained in:
parent
abcb736322
commit
1821f36767
|
|
@ -182,6 +182,7 @@
|
|||
|
||||
<script>
|
||||
import { listConfig, getConfig, delConfig, addConfig, updateConfig, refreshCache } from "@/api/system/config";
|
||||
import { decrypt} from '@/utils/jsencrypt'
|
||||
|
||||
export default {
|
||||
name: "Config",
|
||||
|
|
@ -242,11 +243,7 @@ export default {
|
|||
listConfig(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
|
||||
response.rows.forEach(row => {
|
||||
if (row.configKey == 'sys.user.initPassword') {
|
||||
this.decryptData(row.configValue, 'CCNXrpassWordKey').then(data => {
|
||||
row.configValue = data;
|
||||
}).catch(err => {
|
||||
console.log('🚀 ~ decryptData ~ err:', err);
|
||||
});
|
||||
row.configValue = decrypt(row.configValue)
|
||||
}
|
||||
});
|
||||
this.configList = response.rows;
|
||||
|
|
|
|||
Loading…
Reference in New Issue