forked from verdnatura/salix-front
Merge pull request 'fix: improve method into dev' (!1356) from fix_reload_icon into dev
Reviewed-on: verdnatura/salix-front#1356 Reviewed-by: Carlos Satorres <carlossa@verdnatura.es>
This commit is contained in:
commit
f8b41101d3
|
@ -107,7 +107,10 @@ export default defineRouter(function (/* { store, ssrContext } */) {
|
||||||
'Failed to fetch dynamically imported module',
|
'Failed to fetch dynamically imported module',
|
||||||
'Importing a module script failed',
|
'Importing a module script failed',
|
||||||
];
|
];
|
||||||
state.set('error', errorMessages.some(message.includes));
|
state.set(
|
||||||
|
'error',
|
||||||
|
errorMessages.some((error) => message.startsWith(error)),
|
||||||
|
);
|
||||||
});
|
});
|
||||||
return Router;
|
return Router;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue