Fix show flash messages from legacy

pull/4312/head
Angel Fernando Quiroz Campos 3 years ago
parent 899bb0336f
commit 1293e45f23
  1. 12
      assets/vue/App.vue

@ -128,10 +128,14 @@ const payload = {isAuthenticated, user};
store.dispatch('security/onRefresh', payload);
const app = document.getElementById('app');
onMounted(() => {
const app = document.getElementById('app');
if (app && app.hasAttribute('data-flashes')) {
const flashes = JSON.parse(app.getAttribute('data-flashes'));
if (!(app && app.dataset.flashes)) {
return;
}
const flashes = JSON.parse(app.dataset.flashes);
for (const key in flashes) {
for (const flashText in flashes[key]) {
@ -142,7 +146,7 @@ if (app && app.hasAttribute('data-flashes')) {
});
}
}
}
});
axios.interceptors.response.use(
undefined,

Loading…
Cancel
Save