Skip to content

Commit

Permalink
[error] Nuxt Build Error: [vite:vue] [@vue/compiler-sfc] <script setu…
Browse files Browse the repository at this point in the history
…p> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at vuejs/rfcs#227.
  • Loading branch information
seleningchan committed Nov 18, 2024
1 parent 674c65e commit c2d26b2
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions app/pages/work/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,6 @@ const projectsQuery1 = groq`
}
}`
export default {
data() {
return {
items: [],
lastPublishDate: '2222-11-14 10:42:55',
};
},
created() {
this.fetchData();
},
methods: {
addItem() {
this.fetchData();
},
async fetchData() {
if (this.lastPublishDate === null) {
this.items.push([])
}
var test = []
console.log("result is :"+JSON.stringify(test))
console.log("result length is :"+test.length)
if (test.length > 0) {
this.lastPublishDate = test[test.length - 1].publishDate
} else {
this.lastPublishDate = null // Reached the end
}
console.log('last publish date is: '+this.lastPublishDate)
this.items.push(test)
}
}
};
const { t } = useI18n()
Expand Down

0 comments on commit c2d26b2

Please sign in to comment.