洛阳学员端
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.

36 lines
509 B

10 months ago
10 months ago
10 months ago
10 months 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 permissionToast from './modules/permissionToast';
  6. import getters from './getters';
  7. Vue.use(Vuex);
  8. const store = new Vuex.Store({
  9. state: {
  10. webViewUrl: '',
  11. },
  12. getters,
  13. mutations: {
  14. // webViewUrl
  15. updateWebVeiwUrl(state, url) {
  16. state.webViewUrl = url
  17. },
  18. },
  19. actions: {
  20. },
  21. modules: {
  22. school,
  23. user,
  24. permissionToast
  25. },
  26. });
  27. export default store;