!300 🐛 Fixing a bug. 查询时前端查询时参数类型接收错误

Merge pull request !300 from aeizzz/auto-441246-dev-6446e088
This commit is contained in:
aeizzz 2022-12-20 11:17:38 +00:00 committed by Gitee
commit b60ba63f3f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public class GenDsConfController {
* @return R
*/
@GetMapping("/{id}")
public R<GenDatasourceConf> getById(@PathVariable("id") Integer id) {
public R<GenDatasourceConf> getById(@PathVariable("id") Long id) {
return R.ok(datasourceConfService.getById(id));
}

View File

@ -58,6 +58,7 @@
init (id) {
this.visible = true;
this.canSubmit = true;
this.dataForm.${pk.lowerAttrName} = undefined
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
if (id) {