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
f88f044b
Commit
f88f044b
authored
Nov 17, 2021
by
gj4210
👽
Committed by
janis.streib
Dec 05, 2021
Browse files
ADD: Request & payload in Error output
parent
ee2376bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/App.vue
View file @
f88f044b
...
...
@@ -133,8 +133,9 @@ export default {
})
EventBus
.
$on
(
'
error
'
,
(
payload
)
=>
{
window
.
console
.
debug
(
'
evbus trigger
'
)
window
.
console
.
debug
(
payload
)
window
.
console
.
debug
(
JSON
.
parse
(
JSON
.
stringify
(
payload
)))
// yikes
if
(
'
response
'
in
payload
)
{
window
.
console
.
debug
(
'
has response
'
)
if
(
payload
.
response
.
status
===
401
)
{
return
}
...
...
@@ -145,6 +146,9 @@ export default {
}
else
{
self
.
global_error
=
payload
}
if
(
'
config
'
in
payload
&&
'
url
'
in
payload
.
config
&&
'
data
'
in
payload
.
config
)
{
self
.
global_error
.
request
=
{
url
:
payload
.
config
.
url
,
data
:
JSON
.
parse
(
payload
.
config
.
data
)
}
}
self
.
global_error
.
route_info
=
{
path
:
this
.
$route
.
path
,
redir_from
:
this
.
$route
.
redirectedFrom
}
self
.
global_error
.
session_info
=
{
browser
:
{
...
...
@@ -254,7 +258,8 @@ export default {
-khtml-user-select
:
none
;
/* Konqueror HTML */
-moz-user-select
:
none
;
/* Old versions of Firefox */
-ms-user-select
:
none
;
/* Internet Explorer/Edge */
user-select
:
none
;
/* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
user-select
:
none
;
/* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}
</
style
>
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