bonus-ui/src/utils/config.js

12 lines
301 B
JavaScript
Raw Normal View History

2024-10-29 14:19:41 +08:00
import { getConfig } from '@/api/config';
export function get() {
getConfig()
.then(response => {
2024-11-06 10:05:50 +08:00
console.log(response)
2024-10-29 14:19:41 +08:00
localStorage.setItem('systemConfig', JSON.stringify(response.data));
})
.catch(error => {
console.error('Failed to fetch config:', error);
});
}