feat: 应用详情适配夜间模式 (#1297)

This commit is contained in:
zhengkunwang223 2023-06-08 19:00:11 +08:00 committed by GitHub
parent 97774c88d5
commit 033b3c10c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -314,10 +314,6 @@ func upgradeInstall(installId uint, detailId uint) error {
install.Version = detail.Version
install.AppDetailId = detailId
go func() {
_, _ = http.Get(detail.DownloadCallBackUrl)
}()
if out, err := compose.Down(install.GetComposePath()); err != nil {
if out != "" {
upErr = errors.New(out)

View File

@ -56,7 +56,7 @@
<MdEditor
v-model="upgradeInfo.releaseNote"
previewOnly
:theme="globalStore.$state.themeConfig.theme || 'light'"
:theme="globalStore.$state.themeConfig.theme === 'dark' ? 'dark' : 'light'"
/>
</div>
<template #footer>

View File

@ -83,7 +83,11 @@
</div>
</div>
<div style="margin-left: 10px">
<MdEditor v-model="app.readMe" previewOnly :themes="globalStore.$state.themeConfig.theme || 'light'" />
<MdEditor
v-model="app.readMe"
previewOnly
:theme="globalStore.$state.themeConfig.theme === 'dark' ? 'dark' : 'light'"
/>
</div>
</template>
</LayoutContent>