nsgm-cli 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -246,7 +246,7 @@ const Page = ({ template }) => {
246
246
  pageSize,
247
247
  onChange: (page:any, newPageSize:any) => {
248
248
  // console.log('onChange', page, newPageSize)
249
- dispatch(getTemplate(page-1, newPageSize))
249
+ dispatch(searchTemplate(page - 1, pageSize, { name: handleXSS(searchName) }))
250
250
  }
251
251
  }} />
252
252
  <Modal title={(modalId === 0 ? "新增" : "修改") + " template"} visible={isModalVisiable} onOk={handleOk} onCancel={handleCancel} okText="确认" cancelText="取消">
@@ -120,7 +120,7 @@ module.exports = {
120
120
  })
121
121
  })
122
122
  },
123
- templateBatchAdd: (datas) => {
123
+ templateBatchAdd: ({ datas }) => {
124
124
  // console.log('templateBatchAdd', datas)
125
125
  return new Promise((resolve, reject)=>{
126
126
  getConnection().then((connection)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nsgm-cli",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "A CLI tool to run Next/Style-components and Graphql/Mysql fullstack project",
5
5
  "main": "index.js",
6
6
  "scripts": {