mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-06-16 20:07:33 +02:00
chore: system
This commit is contained in:
parent
aa928f7094
commit
97c023df91
78 changed files with 15225 additions and 15225 deletions
|
@ -1,17 +1,17 @@
|
|||
import { invoke } from "@tauri-apps/api/core";
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
return {
|
||||
provide: {
|
||||
settings: {
|
||||
async getSetting(key: string): Promise<string> {
|
||||
return await invoke<string>("get_setting", { key });
|
||||
},
|
||||
|
||||
async saveSetting(key: string, value: string): Promise<void> {
|
||||
await invoke<void>("save_setting", { key, value });
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
return {
|
||||
provide: {
|
||||
settings: {
|
||||
async getSetting(key: string): Promise<string> {
|
||||
return await invoke<string>("get_setting", { key });
|
||||
},
|
||||
|
||||
async saveSetting(key: string, value: string): Promise<void> {
|
||||
await invoke<void>("save_setting", { key, value });
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue