local path on resources.

This commit is contained in:
m1k1o 2021-03-10 23:07:26 +01:00
parent 69e7990afb
commit 79e817e0b2
2 changed files with 2 additions and 3 deletions

View File

@ -60,7 +60,7 @@ export const actions = actionTree(
{ {
initialise() { initialise() {
$http $http
.get<Emojis>('/emoji.json') .get<Emojis>('emoji.json')
.then((req) => { .then((req) => {
for (const group of req.data.groups) { for (const group of req.data.groups) {
accessor.emoji.addGroup(group) accessor.emoji.addGroup(group)

View File

@ -72,10 +72,9 @@ export const actions = actionTree(
{ {
initialise() { initialise() {
$http $http
.get<KeyboardLayouts>('/keyboard_layouts.json') .get<KeyboardLayouts>('keyboard_layouts.json')
.then((req) => { .then((req) => {
accessor.settings.setKeyboardLayoutsList(req.data) accessor.settings.setKeyboardLayoutsList(req.data)
console.log(req.data)
}) })
.catch(console.error) .catch(console.error)
}, },