Skip to content

Commit 60d2e83

Browse files
committed
removed problem edit button loading
Signed-off-by: zhangtianli2006 <49156174+zhangtianli2006@users.noreply.github.com>
1 parent 1c71ac3 commit 60d2e83

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/problem/edit.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</el-row>
3232
</el-card>
3333
<el-card class="item">
34-
<el-button type="primary" @click="submit" :loading="buttonLoading">Submit</el-button>
34+
<el-button type="primary" @click="submit">Submit</el-button>
3535
<el-button @click="back();">Back</el-button>
3636
<ConfirmDelete
3737
buttonName="Delete"
@@ -114,7 +114,6 @@ export default {
114114
title: '',
115115
mdContent: 'Loading...',
116116
contentLoading: true,
117-
buttonLoading: false,
118117
time: 'Unknown',
119118
memery: 'Unknown',
120119
disable: false,
@@ -148,7 +147,6 @@ export default {
148147
this.$router.push('/problem/' + this.$route.params.id);
149148
},
150149
submit() {
151-
this.buttonLoading = true;
152150
this.$axios
153151
.patch(apiurl('/problem/' + this.$route.params.id), {
154152
title: this.title,
@@ -159,7 +157,6 @@ export default {
159157
enabled: !this.disable
160158
})
161159
.then(() => {
162-
this.buttonLoading = false;
163160
this.$SegmentMessage.success(this, 'Your changes have been submitted');
164161
})
165162
.catch(err => {
@@ -170,7 +167,6 @@ export default {
170167
} else {
171168
this.$SegmentMessage.error(this, 'Unkown error');
172169
}
173-
this.buttonLoading = false;
174170
});
175171
},
176172
delete() {

0 commit comments

Comments
 (0)