Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Yasset Perez
pride-web
Commits
a979cc11
Commit
a979cc11
authored
Sep 12, 2018
by
shabai517
Browse files
add store scheme
parent
5cbf7e61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/store/store.js
src/store/store.js
+12
-0
No files found.
src/store/store.js
0 → 100644
View file @
a979cc11
import
Vue
from
'
vue
'
;
import
Vuex
from
'
vuex
'
;
//只要是plugin,都可以用这种use的方法去应用。
Vue
.
use
(
Vuex
);
export
default
new
Vuex
.
Store
({
state
:{
baseURL
:
location
.
hostname
.
match
(
/ebi/
)?
'
/pride
'
:
''
,
baseApiURL
:
location
.
hostname
.
match
(
/ebi/
)?
'
http://wwwdev.ebi.ac.uk/pride/ws/archive
'
:
'
http://ves-pg-41:9020
'
,
},
});
\ No newline at end of file
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