mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
35 lines
613 B
TypeScript
35 lines
613 B
TypeScript
import { message } from 'antd';
|
|
import { addParam } from '@/utils';
|
|
import kbService from '@/services/kbService';
|
|
|
|
const Model = {
|
|
namespace: 'kAModel',
|
|
state: {
|
|
isShowPSwModal: false,
|
|
isShowTntModal: false,
|
|
loading: false,
|
|
tenantIfo: {},
|
|
activeKey: 'setting',
|
|
id: ''
|
|
|
|
},
|
|
subscriptions: {
|
|
setup({ dispatch, history }) {
|
|
history.listen(location => {
|
|
});
|
|
}
|
|
},
|
|
effects: {
|
|
|
|
},
|
|
reducers: {
|
|
updateState(state, { payload }) {
|
|
return {
|
|
...state,
|
|
...payload
|
|
};
|
|
}
|
|
}
|
|
};
|
|
export default Model;
|