Skip to content

Commit 2eec1df

Browse files
zhengkunwang223wanghe-fit2cloud
authored andcommitted
fix(secret): 修复kubernetes.io/dockerconfigjson类型secret不能编辑的问退
(cherry picked from commit 5fab9a0)
1 parent 66c7ec5 commit 2eec1df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/dashboard/src/components/ko-configuration/ko-secret-docker-data.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ export default {
6868
if (this.dataObj && this.dataObj[".dockerconfigjson"]) {
6969
const { Base64 } = require("js-base64")
7070
const value = Base64.decode(this.dataObj[".dockerconfigjson"])
71-
const auths = JSON.parse(value)
71+
const obj = JSON.parse(value)
72+
const auths = obj.auths
7273
for (const key in auths) {
7374
if (Object.prototype.hasOwnProperty.call(auths, key)) {
7475
this.form = {

0 commit comments

Comments
 (0)