hejianhao
2025-04-16 dab2d210ca06c1faa514c6388fbd5de1ab355360
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import Stores from './_let'
export default {
  [Stores.add](state, num) {
    state.count += num * 1;
  },
  [Stores.loading](state, num) {
    state.loading = num
  },
  [Stores.image](state, num) {
    state.image = num
  },
  [Stores.zIndex](state, num) {
    if (num === 1) {
      state.zIndex = 1301
    } else {
      state.zIndex += 1
    }
  },
  [Stores.fixed](state, num) {
    state.fixed = num
  },
  [Stores.right](state, num) {
    state.right += 1
  },
  [Stores.pageReset](state, num) {
    state.pageReset = { page: num, r: Math.random() }
  },
  [Stores.level](state, num) {
    state.level = num
  },
  [Stores.theme](state, num) {
    state.theme = num
  }
}