learn_nuxt/packages/2-nuxtConfig/app.vue

12 lines
170 B
Vue
Raw Normal View History

2023-05-04 15:23:59 +08:00
<template>
<div>
{{ config }}
</div>
</template>
<script lang="ts" setup>
let config = useRuntimeConfig();
onMounted(() => {
console.log(config);
});
</script>