sh_real_name_system_web/src/utils/config.js

12 lines
301 B
JavaScript
Raw Normal View History

2025-08-04 16:09:05 +08:00
import { getConfig } from '@/api/config';
export function get() {
getConfig()
.then(response => {
console.log(response)
localStorage.setItem('systemConfig', JSON.stringify(response.data));
})
.catch(error => {
console.error('Failed to fetch config:', error);
});
}