Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 29 additions & 1 deletion src/components/SysCogOthers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,33 @@
<el-input v-model="settings.webDAV.password" :disabled="settings.webDAV.fixed" type="password" show-password autocomplete="new-password"></el-input>
</el-form-item>
</el-form>
<h3 class="first-title">公开浏览
<el-tooltip content="启用后,访客可通过 /browse 路径浏览指定目录的图片(只读,无法删除/移动)" placement="right" raw-content>
<font-awesome-icon icon="question-circle" style="margin-left: 5px; cursor: pointer;"/>
</el-tooltip>
</h3>
<el-form :model="settings.publicBrowse" label-width="120px">
<el-form-item label="启用">
<el-switch v-model="settings.publicBrowse.enabled" :disabled="settings.publicBrowse.fixed"></el-switch>
</el-form-item>
<el-form-item prop="publicBrowse.allowedDir">
<template #label>
<span>开放目录</span>
<el-tooltip placement="right" raw-content>
<template #content>
<div style="max-width: 320px; line-height: 1.6;">
<p style="margin: 0 0 8px 0;"><b>允许公开浏览的目录,多个目录用逗号分隔</b></p>
<p style="margin: 0 0 8px 0;">示例:wallpaper,photos,album</p>
<p style="margin: 0 0 8px 0; color: #909399;">支持子目录:2026/lucky,2026/rich</p>
<p style="margin: 0; color: #67c23a;">访问链接:https://你的域名/browse/2026/lucky</p>
</div>
</template>
<font-awesome-icon icon="question-circle" style="margin-left: 5px; cursor: pointer;"/>
</el-tooltip>
</template>
<el-input v-model="settings.publicBrowse.allowedDir" :disabled="settings.publicBrowse.fixed" placeholder="wallpaper,photos,album"></el-input>
</el-form-item>
</el-form>
</div>


Expand All @@ -83,7 +110,8 @@ data() {
telemetry: {},
randomImageAPI: {},
cloudflareApiToken: {},
webDAV: {}
webDAV: {},
publicBrowse: {}
},
// 加载状态
loading: false
Expand Down
Loading