Skip to content

Commit

Permalink
fix: 修复配置获取错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Aug 8, 2023
1 parent 46df31f commit f7dc02b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/components/publish/SinglePublishDoPublish.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ const initPage = async () => {
msg: errMsg,
timeout: 7000,
})
throw e
}
}
Expand Down
14 changes: 7 additions & 7 deletions src/composables/usePublishConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ const usePublishConfig = () => {

// 平台配置
if (key) {
return {
setting,
dynamicConfigArray,
cfg: undefined,
dynCfg: undefined,
}
} else {
const cfg = JsonUtil.safeParse<any>(setting[key], {} as any)
const dynCfg = getDynCfgByKey(dynamicConfigArray, key)

Expand All @@ -76,6 +69,13 @@ const usePublishConfig = () => {
cfg,
dynCfg,
}
} else {
return {
setting,
dynamicConfigArray,
cfg: undefined,
dynCfg: undefined,
}
}
}

Expand Down

0 comments on commit f7dc02b

Please sign in to comment.