flaschengeist-frontend/src/config.ts

15 lines
269 B
TypeScript
Raw Normal View History

import {computed} from 'vue';
import { LocalStorage } from 'quasar';
2020-10-15 01:35:44 +00:00
const config = {
baseURL: '/api',
pollingInterval: 30000,
2020-10-15 01:35:44 +00:00
};
const baseURL = computed(() =>
LocalStorage.getItem<string>('baseURL') || config.baseURL
);
export {baseURL}
export default config;