File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
resources/js/components/form Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,10 @@ export default {
131
131
isEdit () {
132
132
return this .attrs .mode === " edit" ;
133
133
},
134
+ actionUrl () {
135
+ const keys = this .$store .getters .thisPage .grids .selectionKeys ;
136
+ return this ._ .replace (this .attrs .action , " selectionKeys" , keys);
137
+ },
134
138
},
135
139
data () {
136
140
return {
@@ -193,7 +197,7 @@ export default {
193
197
194
198
if (this .isEdit ) {
195
199
this .$http
196
- .put (this .attrs . action , formatData)
200
+ .put (this .actionUrl , formatData)
197
201
.then (({data, code, message}) => {
198
202
if (code === 200 ) {
199
203
if (this .attrs .attrs .isDialog ) {
@@ -209,7 +213,7 @@ export default {
209
213
});
210
214
} else {
211
215
this .$http
212
- .post (this .attrs . action , formatData)
216
+ .post (this .actionUrl , formatData)
213
217
.then (({data, code, message}) => {
214
218
if (code === 200 ) {
215
219
if (this .attrs .attrs .isDialog ) {
You can’t perform that action at this time.
0 commit comments