diff options
| author | Henry Jameson <me@hjkos.com> | 2021-04-25 13:24:08 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-04-25 13:24:08 +0300 |
| commit | 905b9771ec74c4c79e5795676ea9c3946e586ce9 (patch) | |
| tree | e75e4ea9f2f5eaab32af5c8f31231acdf9f8fd62 /src/modules/config.js | |
| parent | fca885e665094b8efcbc65a3f4ec9ba31679c4c2 (diff) | |
stop using vue.set
Diffstat (limited to 'src/modules/config.js')
| -rw-r--r-- | src/modules/config.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/config.js b/src/modules/config.js index 629588a8..9e419b40 100644 --- a/src/modules/config.js +++ b/src/modules/config.js @@ -1,4 +1,3 @@ -import { set, delete as del } from 'vue' import { setPreset, applyTheme } from '../services/style_setter/style_setter.js' import messages from '../i18n/messages' @@ -98,14 +97,14 @@ const config = { }, mutations: { setOption (state, { name, value }) { - set(state, name, value) + state[name] = value }, setHighlight (state, { user, color, type }) { const data = this.state.config.highlight[user] if (color || type) { - set(state.highlight, user, { color: color || data.color, type: type || data.type }) + state.highlight[user] = { color: color || data.color, type: type || data.type } } else { - del(state.highlight, user) + delete state.highlight[user] } } }, |
