mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
* feat: remove unnecessary 'loading' fields from other files * feat: layout the knowledge list page * feat: modify the page switching button in the header
37 lines
707 B
TypeScript
37 lines
707 B
TypeScript
import { DvaModel } from 'umi';
|
|
export interface kAModelState {
|
|
isShowPSwModal: boolean;
|
|
isShowTntModal: boolean;
|
|
tenantIfo: any;
|
|
activeKey: string;
|
|
id: string;
|
|
doc_id: string;
|
|
}
|
|
|
|
const model: DvaModel<kAModelState> = {
|
|
namespace: 'kAModel',
|
|
state: {
|
|
isShowPSwModal: false,
|
|
isShowTntModal: false,
|
|
tenantIfo: {},
|
|
activeKey: 'setting',
|
|
id: '',
|
|
doc_id: '',
|
|
},
|
|
reducers: {
|
|
updateState(state, { payload }) {
|
|
return {
|
|
...state,
|
|
...payload,
|
|
};
|
|
},
|
|
},
|
|
subscriptions: {
|
|
setup({ dispatch, history }) {
|
|
history.listen((location) => {});
|
|
},
|
|
},
|
|
effects: {},
|
|
};
|
|
export default model;
|