mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
20 lines
305 B
JavaScript
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();
|