import { reactive } from 'vue' import { httpService } from '@/services' import { merge } from 'lodash' export const settingStore = { state: reactive({ media_path: '' }), init (settings: Settings) { merge(this.state, settings) }, async update (settings: Settings) { await httpService.put('settings', settings) merge(this.state, settings) } }