合并代码

This commit is contained in:
孙景学
2025-07-02 16:18:03 +08:00
parent 2b3eb5672d
commit 3ae57eb23b
87 changed files with 3852 additions and 19276 deletions

27
src/models/globalModal.ts Normal file
View File

@ -0,0 +1,27 @@
// src/models/globalModal.ts
export default {
namespace: 'globalModal',
state: {
visible: false,
title: '',
id: '',
},
reducers: {
show(state:any, { payload }:any ) {
return {
...state,
visible: true,
id: payload.id
};
},
hide(state:any ) {
return {
...state,
visible: false,
title: '',
id: ''
};
},
},
};

5
src/models/index.ts Normal file
View File

@ -0,0 +1,5 @@
import globalModal from './globalModal';
export default {
globalModal,
// ... 其他 models
};