FreeDATA/gui/src/store/settingsStore.js
2023-11-18 16:53:54 +01:00

20 lines
305 B
JavaScript

import { reactive } from "vue";
import { getConfig } from "../js/api";
export const settingsStore = reactive({
local: {
host: "127.0.0.1",
port: "5000",
},
remote: {},
});
export function getRemote() {
getConfig().then((conf) => {
settingsStore.remote = conf;
});
}
getRemote();