File size: 1,055 Bytes
fad2ec7
6b8fc2c
 
fad2ec7
 
 
 
 
 
 
 
 
 
 
 
 
6b8fc2c
fad2ec7
 
 
 
 
 
 
6b8fc2c
 
 
 
 
 
 
fad2ec7
 
6b8fc2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { Effect, Reducer, Subscription } from 'umi'
import { message } from 'antd';
import kbService from '@/services/kbService';
export interface kAModelState {
  isShowPSwModal: boolean;
  isShowTntModal: boolean;
  loading: boolean;
  tenantIfo: any;
  activeKey: string;
  id: string;
  doc_id: string
}
export interface kAModelType {
  namespace: 'kAModel';
  state: kAModelState;
  effects: {

  };
  reducers: {
    updateState: Reducer<kAModelState>;
  };
  subscriptions: { setup: Subscription };
}
const Model: kAModelType = {
  namespace: 'kAModel',
  state: {
    isShowPSwModal: false,
    isShowTntModal: false,
    loading: false,
    tenantIfo: {},
    activeKey: 'setting',
    id: '',
    doc_id: ''

  },
  subscriptions: {
    setup({ dispatch, history }) {
      history.listen(location => {
      });
    }
  },
  effects: {

  },
  reducers: {
    updateState(state, { payload }) {
      return {
        ...state,
        ...payload
      };
    }
  }
};
export default Model;