vue/src/shared/helpers/boot.js
Function default
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function(callback) {
const client = new RestfulClient('boot');
client.get('site').then(function(appConfig) {
appConfig.timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
forEach(appConfig, (v, k) => Vue.set(AppConfig, k, v));