学员端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
433 B

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. import Vue from 'vue';
  2. import Vuex from 'vuex';
  3. import school from './modules/school';
  4. import user from './modules/user';
  5. import getters from './getters';
  6. Vue.use(Vuex);
  7. const store = new Vuex.Store({
  8. state: {
  9. webViewUrl: '',
  10. },
  11. getters,
  12. mutations: {
  13. // webViewUrl
  14. updateWebVeiwUrl(state, url) {
  15. state.webViewUrl = url
  16. },
  17. },
  18. actions: {
  19. },
  20. modules: {
  21. school,
  22. user,
  23. },
  24. });
  25. export default store;