수정 4번째..

This commit is contained in:
최준흠 2022-08-24 12:41:03 +09:00
parent 85829c6fe1
commit 22f294aeff
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div id="app">
<HeaderLayout /> <HeaderLayout />
<router-view /> <router-view />
</div> </div>

View File

@ -137,8 +137,9 @@ export default {
{ {
key: 'is_done', key: 'is_done',
label: '사용여부', label: '사용여부',
formatter: (value, key, item) => { // formatter: (value, key, item) => {
return value.toLowerCase() === 'true' ? 'Yes' : 'No' formatter: (value) => {
return value ? 'Yes' : 'No'
}, },
sortable: true, sortable: true,
sortByFormatted: true, sortByFormatted: true,
@ -186,7 +187,7 @@ export default {
async getDatas() { async getDatas() {
this.isBusy = true this.isBusy = true
const items = await axios const items = await axios
.get('/todo', { .get('/todo/vue3', {
params: { params: {
page: parseInt(this.currentPage), page: parseInt(this.currentPage),
per_page: parseInt(this.perPage), per_page: parseInt(this.perPage),