Skip to content

Commit 4390774

Browse files
committed
"功能优化"
1 parent 04d79e8 commit 4390774

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

src/components/BS_PostPot.vue

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -130,29 +130,31 @@ export default {
130130
}
131131
},
132132
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+
// },
140140
handle:async function(){
141-
var ret = await this.$axios.post('http://localhost:8080/topic/publishtopic',{
141+
var ret = await this.$axios.post('topic/publishtopic',{
142142
context:this.context,
143143
description:this.description,
144144
tag:this.tag,
145145
}).then(response=>{
146-
console.log(response)})
146+
console.log(response);
147+
alert(response.data.msg)
148+
})
147149
.catch(function (error) {
148150
console.log(error);
149151
});
150-
console.log("发布主题帖成功");
152+
//console.log("发布主题帖成功");
151153
},
152154
},
153-
mounted:function(){
154-
this.queryData();
155-
}
155+
// mounted:function(){
156+
// this.queryData();
157+
// }
156158
}
157159
</script>
158160

0 commit comments

Comments
 (0)