Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend_fullstack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
team_fullastack
frontend_fullstack
Commits
d64099a6
Commit
d64099a6
authored
1 year ago
by
vildemv
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some bugs and removed unused code
parent
fd458623
No related branches found
No related tags found
2 merge requests
!9
Mainly changes for the history view
,
!8
Updates to the history view
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/mainpage/CreateTrivio.vue
+1
-6
1 addition, 6 deletions
src/views/mainpage/CreateTrivio.vue
with
1 addition
and
6 deletions
src/views/mainpage/CreateTrivio.vue
+
1
−
6
View file @
d64099a6
...
@@ -81,11 +81,6 @@ watch(questions, (newQuestions) => {
...
@@ -81,11 +81,6 @@ watch(questions, (newQuestions) => {
console
.
log
(
'
All questions:
'
,
newQuestions
)
console
.
log
(
'
All questions:
'
,
newQuestions
)
})
})
const
logInfo
=
()
=>
{
console
.
log
(
questions
.
value
)
console
.
log
(
numberOfQuestions
.
value
)
}
const
saveQuizToBackend
=
async
()
=>
{
const
saveQuizToBackend
=
async
()
=>
{
try
{
try
{
const
token
=
tokenStore
.
jwtToken
;
const
token
=
tokenStore
.
jwtToken
;
...
@@ -118,7 +113,7 @@ const saveQuizToBackend = async () => {
...
@@ -118,7 +113,7 @@ const saveQuizToBackend = async () => {
};
};
await
postNewTrivio
(
token
,
trivioData
);
await
postNewTrivio
(
token
,
trivioData
);
console
.
log
(
'
Quiz saved successfully!
'
);
console
.
log
(
'
Quiz saved successfully!
'
);
await
router
.
push
(
"
/homepage/
my
trivios
"
)
await
router
.
push
(
"
/homepage/trivios
"
)
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'
Error saving quiz:
'
,
error
);
console
.
error
(
'
Error saving quiz:
'
,
error
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment