Исправление ошибки компиляции

This commit is contained in:
2024-06-19 07:46:45 +07:00
parent 345aaa451e
commit 84ace82c0c
4 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "to-do-app", "name": "to-do-app",
"private": true, "private": true,
"version": "0.0.0", "version": "1.4.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
+1 -1
View File
@@ -24,5 +24,5 @@ custom-protocol = ["tauri/custom-protocol"]
[profile.release] [profile.release]
lto = true # Enables link to optimizations lto = true # Enables link to optimizations
opt-level = "z" # Optimize for binary size opt-level = "s" # Optimize for binary size
strip = true # Remove debug symbols strip = true # Remove debug symbols
+6
View File
@@ -26,6 +26,9 @@
"unmaximize": true, "unmaximize": true,
"unminimize": true, "unminimize": true,
"startDragging": true "startDragging": true
},
"fs": {
"scope": ["$RESOURCE/*"]
} }
}, },
"windows": [ "windows": [
@@ -49,6 +52,9 @@
"icons/128x128@2x.png", "icons/128x128@2x.png",
"icons/icon.icns", "icons/icon.icns",
"icons/icon.ico" "icons/icon.ico"
],
"resources": [
".env"
] ]
} }
} }
+3 -2
View File
@@ -32,10 +32,11 @@ let to_change_name = ref("");
let to_change_priority = ref(""); let to_change_priority = ref("");
onBeforeMount(async () => { onBeforeMount(async () => {
await invoke('check_or_create_tasks_file'); await invoke('check_or_create_tasks_file')
.then(async () => {
await get_tasks(); await get_tasks();
pending.value = false; pending.value = false;
});
document document
.getElementById('titlebar-minimize') .getElementById('titlebar-minimize')