parent
51bd0a4cf8
commit
8942eacbf4
1 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,10 @@ export default {
|
||||||
for (const key of Object.keys(json)) {
|
for (const key of Object.keys(json)) {
|
||||||
Vue.set(config, key, json[key]);
|
Vue.set(config, key, json[key]);
|
||||||
}
|
}
|
||||||
|
// If default server is not set, default to current server address
|
||||||
|
if (!json.defaultServer) {
|
||||||
|
Vue.set(config, "defaultServer", window.location.origin);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Vue.prototype.$config = config;
|
Vue.prototype.$config = config;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue