File tree 1 file changed +15
-13
lines changed 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -130,29 +130,31 @@ export default {
130
130
}
131
131
},
132
132
methods: {
133
- queryData : async function (){
134
- var ret = await this .$axios .post (" topic/publishtopic" ).then (function (response ) {
135
- console .log (response)})
136
- .catch (function (error ) {
137
- console .log (error .response );
138
- });
139
- },
133
+ // queryData:async function(){
134
+ // var ret = await this.$axios.post("topic/publishtopic").then(function (response) {
135
+ // console.log(response)})
136
+ // .catch(function (error) {
137
+ // console.log(error.response);
138
+ // });
139
+ // },
140
140
handle : async function (){
141
- var ret = await this .$axios .post (' http://localhost:8080/ topic/publishtopic' ,{
141
+ var ret = await this .$axios .post (' topic/publishtopic' ,{
142
142
context: this .context ,
143
143
description: this .description ,
144
144
tag: this .tag ,
145
145
}).then (response => {
146
- console .log (response)})
146
+ console .log (response);
147
+ alert (response .data .msg )
148
+ })
147
149
.catch (function (error ) {
148
150
console .log (error);
149
151
});
150
- console .log (" 发布主题帖成功" );
152
+ // console.log("发布主题帖成功");
151
153
},
152
154
},
153
- mounted : function (){
154
- this .queryData ();
155
- }
155
+ // mounted:function(){
156
+ // this.queryData();
157
+ // }
156
158
}
157
159
</script >
158
160
You can’t perform that action at this time.
0 commit comments