diff --git a/package.json b/package.json index 8d234f4..969196a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "vue-tsc --noEmit && vite build", + "build": "vue-tsc --noEmit && vite build && (cd src-tauri && cargo check)", "preview": "vite preview", "tauri": "tauri" }, diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 0e9b175..6f033ad 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize}; use std::fs; use std::collections::HashMap; use std::collections::HashSet; -use std::io; + // Define the configuration structure #[derive(Serialize, Deserialize, Default, Debug)] diff --git a/src/App.vue b/src/App.vue index 339a8a6..7fb3ee7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -306,7 +306,7 @@ const handleCopy = async () => { // Reactivity for Current Directory Prefix watch(currentDir, (newPath) => { if (!newPath) return; - const dirName = newPath.split(/[/\\]/).pop(); + const dirName = newPath.split(/[\\/]/).pop(); if (!dirName) return; const regex = /^(\d{2})(\d{2})视频$/; @@ -447,12 +447,14 @@ watch(currentDir, (newPath) => {