Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beta.ordbok.uib.no
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Språksamlingane
beta.ordbok.uib.no
Commits
3279afb6
Commit
3279afb6
authored
3 years ago
by
Henrik Askjer
Browse files
Options
Downloads
Patches
Plain Diff
remove axios caching
parent
5ffc0f9f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/DictionaryView.vue
+1
-14
1 addition, 14 deletions
src/components/DictionaryView.vue
with
1 addition
and
14 deletions
src/components/DictionaryView.vue
+
1
−
14
View file @
3279afb6
...
...
@@ -179,22 +179,9 @@ import SearchResults from './SearchResults.vue'
import
Autocomplete
from
'
./Autocomplete.vue
'
import
SearchToolbar
from
'
./SearchToolbar.vue
'
import
{
setup
}
from
'
axios-cache-adapter
'
const
SEARCH_ENDPOINT
=
process
.
env
.
VUE_APP_SEARCH_ENDPOINT
const
ARTICLE_ENDPOINT
=
process
.
env
.
VUE_APP_ARTICLE_ENDPOINT
let
api_params
=
{
baseURL
:
SEARCH_ENDPOINT
,
cache
:
{
maxAge
:
15
*
60
*
1000
,
}
}
if
(
process
.
env
.
VUE_APP_RELEASE
==
'
test
'
)
{
//disable caching in local testing
api_params
=
{
baseURL
:
SEARCH_ENDPOINT
}
}
const
api
=
setup
(
api_params
)
const
api
=
axios
.
create
({
baseURL
:
SEARCH_ENDPOINT
}
)
function
navigate_to_article
(
self
,
origin
)
{
self
.
article
=
null
...
...
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