Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
dda4daf6
Commit
dda4daf6
authored
Nov 19, 2020
by
janis.streib
🦉
Browse files
FIX: more abstraction
parent
0b8f220e
Pipeline
#118667
passed with stages
in 8 minutes and 46 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/App.vue
View file @
dda4daf6
...
...
@@ -85,7 +85,12 @@ export default {
EventBus
.
$on
(
'
error
'
,
(
payload
)
=>
{
window
.
console
.
debug
(
'
evbus trigger
'
)
window
.
console
.
debug
(
payload
)
self
.
global_error
=
JSON
.
stringify
(
payload
,
null
,
4
)
if
(
'
response
'
in
payload
)
{
self
.
global_error
=
payload
.
response
.
data
}
else
{
self
.
global_error
=
payload
}
self
.
global_error
=
JSON
.
stringify
(
self
.
global_error
,
null
,
4
)
this
.
$bvModal
.
show
(
'
net-suite-error
'
)
})
}
...
...
frontend/src/main.js
View file @
dda4daf6
...
...
@@ -307,11 +307,7 @@ async function init() {
}
window
.
addEventListener
(
'
unhandledrejection
'
,
function
(
event
)
{
window
.
console
.
debug
(
'
unhanldedrejection handler triggered
'
)
if
(
'
response
'
in
event
.
reason
)
{
EventBus
.
$emit
(
'
error
'
,
event
.
reason
.
response
.
data
)
}
else
{
EventBus
.
$emit
(
'
error
'
,
event
.
reason
)
}
EventBus
.
$emit
(
'
error
'
,
event
.
reason
)
})
Axios
.
interceptors
.
response
.
use
(
function
(
response
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment