12345678910111213141516171819202122232425262728293031323334 |
- /*
- * APP全局状态管理
- *
- */
- // VUE2的语法格式
- // #ifndef VUE3
- import Vue from 'vue'
- import Vuex from 'vuex'
- Vue.use(Vuex)
- const store = new Vuex.Store({
- // #endif
- // VUE3的语法格式
- // #ifdef VUE3
- import { createStore } from 'vuex'
- const store = createStore({
- // #endif
- //定义应用状态的默认初始值,页面显示所需的数据从该对象中进行读取。
- state: {
-
- },
- mutations: {
-
- },
- getters: {
-
- },
- actions: {
-
- }
- })
- export default store
|