flow function add

This commit is contained in:
2023-08-09 13:36:09 +00:00
parent f597f7aa5a
commit 7a9718a6fa
4 changed files with 173 additions and 10 deletions

View File

@@ -20,8 +20,8 @@ export default {
{ name: 'content', label: '内容', field: 'content', sortable: true }
]
const rows = reactive([])
onMounted( () => {
api.get('http://127.0.0.1:8000/api/kintone/1').then(res =>{
onMounted(async () => {
await api.get('http://127.0.0.1:8000/api/kintone/2').then(res =>{
res.data.forEach((item) =>
{
rows.push({name:item.name,desc:item.desc,content:item.content});