|
@@ -23,6 +23,14 @@ function loadBrandComponent({ commit }, params = {}) {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+function loadCurrencyData ({commit}) {
|
|
|
+ return axios.get('/basic/enterprise/currency')
|
|
|
+ .then(res => {
|
|
|
+ commit('option/SET_CURRENCY', res.data)
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
export const actions = {
|
|
|
|
|
|
nuxtServerInit(store, { params, route, isDev, req }) {
|
|
@@ -78,6 +86,9 @@ export const actions = {
|
|
|
}
|
|
|
}
|
|
|
commit('option/REQUEST_USER_INFO_SUCCESS', response.data)
|
|
|
+ return Promise.all([
|
|
|
+ loadCurrencyData({commit})
|
|
|
+ ])
|
|
|
}, err => {
|
|
|
commit('option/REQUEST_USER_INFO_FAILURE', err)
|
|
|
})
|
|
@@ -110,7 +121,7 @@ export const actions = {
|
|
|
},
|
|
|
|
|
|
loadCurrencyData ({commit}) {
|
|
|
- return axios.get('basic/enterprise/currency')
|
|
|
+ return axios.get('/basic/enterprise/currency')
|
|
|
.then(res => {
|
|
|
commit('option/SET_CURRENCY', res.data)
|
|
|
})
|