Skip to content

Commit

Permalink
优化 env demo 显示
Browse files Browse the repository at this point in the history
  • Loading branch information
FairyEver committed Nov 16, 2018
1 parent 5f1b68d commit 2693c44
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pages/demo/playground/env/index.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<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>

<script>
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)
}
}
}
Expand Down

0 comments on commit 2693c44

Please sign in to comment.