This commit is contained in:
陶林 2023-05-04 15:23:59 +08:00
parent 6ebd6e0ed1
commit de9695af0e
12 changed files with 32 additions and 51 deletions

View File

@ -1,42 +0,0 @@
# Nuxt 3 Minimal Starter
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
## Setup
Make sure to install the dependencies:
```bash
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install
```
## Development Server
Start the development server on `http://localhost:3000`
```bash
npm run dev
```
## Production
Build the application for production:
```bash
npm run build
```
Locally preview production build:
```bash
npm run preview
```
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

View File

@ -1,5 +0,0 @@
<template>
<div>
<NuxtWelcome />
</div>
</template>

View File

@ -1,4 +0,0 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
})

View File

@ -0,0 +1,3 @@
# Nuxt Config

View File

@ -0,0 +1,11 @@
<template>
<div>
{{ config }}
</div>
</template>
<script lang="ts" setup>
let config = useRuntimeConfig();
onMounted(() => {
console.log(config);
});
</script>

View File

@ -0,0 +1,9 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
runtimeConfig: {
public: {
token: "123",
footer: "copyright2023"
},
},
})

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -21,6 +21,15 @@ importers:
specifier: ^3.4.3
version: 3.4.3(@types/node@18.0.0)
packages/2-nuxtConfig:
devDependencies:
'@types/node':
specifier: ^18
version: 18.0.0
nuxt:
specifier: ^3.4.3
version: 3.4.3(@types/node@18.0.0)
packages:
/@ampproject/remapping@2.2.1: