Skip to content

Commit dfb8a6c

Browse files
committed
change api
1 parent 224c95b commit dfb8a6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/problem/edit.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ export default {
4343
submit() {
4444
this.buttonLoading = true;
4545
this.$axios
46-
.patch(apiurl('/problem/content'), {
47-
pid: Number(this.$route.params.id),
46+
.patch(apiurl('/problem/' + this.$route.params.id), {
4847
title: this.title,
4948
description: this.mdContent
5049
})

0 commit comments

Comments
 (0)