优化代码,针对增改场景使用传统方式实现
This commit is contained in:
@@ -28,18 +28,10 @@ onMounted(() => {
|
||||
type: 'form',
|
||||
api: {
|
||||
method: 'post',
|
||||
url: `${information.baseUrl}/jsonapi`,
|
||||
url: `${information.baseUrl}/organization/save`,
|
||||
data: {
|
||||
data: {
|
||||
type: 'organization',
|
||||
attributes: {
|
||||
name: '${name}'
|
||||
}
|
||||
}
|
||||
name: '${name}',
|
||||
},
|
||||
headers: {
|
||||
'Content-Type': 'application/vnd.api+json'
|
||||
}
|
||||
},
|
||||
body: [
|
||||
{
|
||||
@@ -60,7 +52,7 @@ onMounted(() => {
|
||||
page: {
|
||||
size: '${perPage|default:undefined}',
|
||||
number: '${page|default:undefined}',
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
columns: [
|
||||
|
||||
Reference in New Issue
Block a user