提交 8aa589e1 编写于 作者: L lin-xin

add submit message

上级 0812b4b1
......@@ -75,7 +75,7 @@
},
methods: {
onSubmit() {
console.log('submit!');
this.$message.success('提交成功!');
}
}
}
......
......@@ -35,6 +35,7 @@
},
submit(){
console.log(this.content);
this.$message.success('提交成功!');
}
},
computed: {
......@@ -43,4 +44,9 @@
}
}
}
</script>
\ No newline at end of file
</script>
<style scoped>
.editor-btn{
margin-top: 20px;
}
</style>
\ No newline at end of file
......@@ -22,6 +22,7 @@
import Datasource from 'vue-datasource';
export default {
data: function(){
const self = this;
return {
information: {
pagination:{},
......@@ -50,7 +51,7 @@
text: 'Click',
class: 'btn-primary',
event(e, row) {
alert('Click row: ' + row.row.id);
self.$message('选中的行数: ' + row.row.id);
}
}
],
......@@ -80,7 +81,7 @@
}
},
beforeMount(){
axios.get('../../../static/data.json').then( (res) => {
axios.get('/static/data.json').then( (res) => {
this.information = res.data;
})
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册