文章目录
后端rust调用文件打开对话框获取绝对路径传递给前端
1 目标
后端rust调用文件打开对话框获取绝对路径。
2 步骤
2.1 main.rs
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
#[tauri::command]