vuejs / rfcs

RFCs for substantial changes / feature additions to Vue core
4.85k stars 551 forks source link

how to use await in tag <script setup> #266

Closed syifeng closed 3 years ago

syifeng commented 3 years ago
<script setup async>
import { ref, watch } from 'vue'
import HelloWorld from './components/HelloWorld.vue'
import { getMedInfos } from './api/medInfo'
const msg = ref('msg')
export const medInfos = await getMedInfos(1, 10)
</script>

when I use the await function in the tag ' Githubissues.

  • Githubissues is a development platform for aggregating issues.