优化 env demo 显示
Former-commit-id: 43ce0e3535f937a1828f08fbab4e2b09d7cb9449 [formerly 43ce0e3535f937a1828f08fbab4e2b09d7cb9449 [formerly 43ce0e3535f937a1828f08fbab4e2b09d7cb9449 [formerly 43ce0e3535f937a1828f08fbab4e2b09d7cb9449 [formerly 749455fe4faf11e12be6189c68827b2edca3a122 [formerly 5c96912b2a3df416762ff6117ba7e63157eb399f]]]]] Former-commit-id: 1d91147af355421a7904e7e643763877f5ea8bf6 Former-commit-id: ffb6ca7445bbfdfba031b2f2be5fb5ba39481b04 Former-commit-id: 16696b34d2d34849da33afeff9229004daecf73e [formerly ae6c555fecf13f9c4db8a0010dbba4a0762957af] Former-commit-id: 657882f02e61eddccd6656dab6de77a9fd39ff88 Former-commit-id: cc74aece1acf464fc84bfdeffd7459d2aff695f2 Former-commit-id: e799ad3d03183f25517a6575969a34fd15325635 Former-commit-id: f12996ec7476fd50397885e05dccdcba711f8fa7 Former-commit-id: d2d00357e096f7b506d2d2dbed7a266517b4e59c
This commit is contained in:
8
src/pages/demo/playground/env/index.vue
vendored
8
src/pages/demo/playground/env/index.vue
vendored
@@ -1,9 +1,7 @@
|
||||
<template>
|
||||
<d2-container type="card">
|
||||
<template slot="header">process.env</template>
|
||||
<p class="d2-mt-0">NODE_ENV = {{env}}</p>
|
||||
<p>BASE_URL = {{baseUrl}}</p>
|
||||
<p class="d2-mb-0">VUE_APP_TITLE = {{title}}</p>
|
||||
<d2-highlight :code="env"/>
|
||||
</d2-container>
|
||||
</template>
|
||||
|
||||
@@ -11,9 +9,7 @@
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
env: process.env.NODE_ENV,
|
||||
baseUrl: process.env.BASE_URL,
|
||||
title: process.env.VUE_APP_TITLE
|
||||
env: JSON.stringify(process.env, null, 2)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user