list
#app{
margin: auto 50px;
}
:data="tableData"
style=" 100%">
prop="createDate"
label="创建时间"
width="180">
prop="bucketName"
label="bucketName"
width="180">
prop="fileName"
label="fileName"
width="180">
prop="folder"
label="folder"
width="180">
prop="expiration"
label="过期时间"
width="180">
prop="url"
label="URL"
>
var app = new Vue({
el: '#app',
data() {
return {
tableData: []
}
},
mounted: function () {
var that = this ;
// get
axios.get('/oss/list')
.then(function (res) {
var data = res.data ;
that.tableData = data ;
console.log(data);
})
.catch(function (error) {
console.log(error);
});
},
methods: {
test: function () {
alert(1)
}
}
})