[PR #493] [MERGED] fix: #488 修复查看目录功能失败问题 #740

Closed
opened 2026-03-02 03:41:33 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/codexu/note-gen/pull/493
Author: @SilenceZen
Created: 7/30/2025
Status: Merged
Merged: 7/30/2025
Merged by: @codexu

Base: devHead: fix-488-clean


📝 Commits (1)

  • 4fcaf7d fix: #488 修复查看目录功能失败问题

📊 Changes

8 files changed (+51 additions, -7 deletions)

View changed files

📝 package.json (+1 -0)
📝 pnpm-lock.yaml (+10 -0)
📝 src-tauri/Cargo.lock (+23 -0)
📝 src-tauri/Cargo.toml (+1 -0)
📝 src-tauri/capabilities/default.json (+9 -1)
📝 src-tauri/src/main.rs (+1 -0)
📝 src/app/core/article/file/file-item.tsx (+3 -3)
📝 src/app/core/article/file/folder-item/view-directory.tsx (+3 -3)

📄 Description

原因:Tauri 2.0 shell插件不支持打开本地路径
解决:迁移到opener插件,使用openPath替代open

  • 添加tauri-plugin-opener依赖
  • 更新view-directory.tsx和file-item.tsx
  • 配置opener权限允许打开本地路径

参考URL:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/codexu/note-gen/pull/493 **Author:** [@SilenceZen](https://github.com/SilenceZen) **Created:** 7/30/2025 **Status:** ✅ Merged **Merged:** 7/30/2025 **Merged by:** [@codexu](https://github.com/codexu) **Base:** `dev` ← **Head:** `fix-488-clean` --- ### 📝 Commits (1) - [`4fcaf7d`](https://github.com/codexu/note-gen/commit/4fcaf7d99b7a63f09e1e6d6a484d4b2882624039) fix: #488 修复查看目录功能失败问题 ### 📊 Changes **8 files changed** (+51 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -0) 📝 `pnpm-lock.yaml` (+10 -0) 📝 `src-tauri/Cargo.lock` (+23 -0) 📝 `src-tauri/Cargo.toml` (+1 -0) 📝 `src-tauri/capabilities/default.json` (+9 -1) 📝 `src-tauri/src/main.rs` (+1 -0) 📝 `src/app/core/article/file/file-item.tsx` (+3 -3) 📝 `src/app/core/article/file/folder-item/view-directory.tsx` (+3 -3) </details> ### 📄 Description 原因:Tauri 2.0 shell插件不支持打开本地路径 解决:迁移到opener插件,使用openPath替代open - 添加tauri-plugin-opener依赖 - 更新view-directory.tsx和file-item.tsx - 配置opener权限允许打开本地路径 参考URL: - https://v2.tauri.app/reference/javascript/shell/ - https://github.com/tauri-apps/plugins-workspace/security/advisories/GHSA-c9pr-q8gx-3mgp --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 03:41:33 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#740
No description provided.