mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
28 lines
495 B
Vue
28 lines
495 B
Vue
|
<template>
|
||
|
<div>
|
||
|
<span v-for="(key, i) in configKeys" :id="key" :key="i">{{ vueConfig[key] | toStr }}</span>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import Vue from 'vue'
|
||
|
|
||
|
export default {
|
||
|
filters: {
|
||
|
toStr(v) {
|
||
|
return String(v)
|
||
|
}
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
vueConfig: Vue.config
|
||
|
}
|
||
|
},
|
||
|
computed: {
|
||
|
configKeys: function () {
|
||
|
return Object.keys(this.vueConfig).filter(k => ['silent', 'devtools', 'performance', 'productTip'].includes(k))
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|