diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 835649d..3ec470f 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -180,7 +180,8 @@ "Network": "Network", "Performance": "Performance", "Security": "Security", - "WebDAV Specific": "WebDAV Specific" + "WebDAV Specific": "WebDAV Specific", + "Windows Specific": "Windows Specific" }, "flagDescriptions": { "allow-other": "Allow other users to access the mount", @@ -209,6 +210,7 @@ "vfs-cache-mode-minimal": "Cache only file metadata", "vfs-cache-mode-writes": "Cache local writes, upload file contents after writing completes", "vfs-read-chunk-size": "Read chunk size (default 128M)", + "volname": "Set Windows volume name after mount", "webdav-bearer-token": "Custom bearer token", "webdav-headers": "Set custom HTTP headers" }, diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index a1596c6..559b89d 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -180,7 +180,8 @@ "Network": "网络", "Performance": "性能", "Security": "安全", - "WebDAV Specific": "WebDAV 专用" + "WebDAV Specific": "WebDAV 专用", + "Windows Specific": "Windows 专用" }, "flagDescriptions": { "allow-other": "允许其他用户访问挂载点", @@ -209,6 +210,7 @@ "vfs-cache-mode-minimal": "只缓存文件的元信息", "vfs-cache-mode-writes": "缓存本地写入,文件内容写入完成后上传", "vfs-read-chunk-size": "读取块大小(默认 128M)", + "volname": "设置挂载后的windows卷名", "webdav-bearer-token": "自定义token", "webdav-headers": "设置自定义 HTTP 标头" }, diff --git a/src/views/MountView.vue b/src/views/MountView.vue index 365ef63..3273a67 100644 --- a/src/views/MountView.vue +++ b/src/views/MountView.vue @@ -641,6 +641,14 @@ const commonFlags = [ { flag: '--progress', value: '', descriptionKey: 'progress' }, ], }, + ...(isWindows + ? [ + { + category: 'Windows Specific', + flags: [{ flag: '--volname', value: 'OpenlistDAV', descriptionKey: 'volname' }], + }, + ] + : []), ] const filterList = computed(() => [