This commit is contained in:
sedmedgh
2022-01-13 12:39:52 +03:30
parent ea9904acfb
commit 90687db70e
4 changed files with 28 additions and 8 deletions
+14
View File
@@ -0,0 +1,14 @@
const state = {
route: '/register/form',
}
const mutations = {
SET_ROUTE(state, route) {
state.route = route
}
}
export default {
namespaced: true,
state,
mutations,
}
+3 -1
View File
@@ -43,6 +43,7 @@ import badadv from './badadv/badadv'
import points from './point/points'
import transaction from './transaction/transaction'
import price from './price/price'
import route from './route'
export default new Vuex.Store({
getters,
@@ -70,7 +71,8 @@ export default new Vuex.Store({
transaction:transaction,
price:price,
variantAdd:variantAdd,
advModel:advModel
advModel:advModel,
route:route,
},
strict: process.env.NODE_ENV !== 'production'
})