File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 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 () {
You can’t perform that action at this time.
0 commit comments