2018-08-08 19:05:23 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2018-11-24 18:49:19 +00:00
|
|
|
<span v-for="(key,i) in configKeys" :id="key" :key="i">
|
|
|
|
{{ vueConfig[key] | toStr }}
|
|
|
|
</span>
|
2018-08-08 19:05:23 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Vue from 'vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
filters: {
|
2019-07-10 10:45:49 +00:00
|
|
|
toStr (v) {
|
2018-08-08 19:05:23 +00:00
|
|
|
return String(v)
|
|
|
|
}
|
|
|
|
},
|
2019-07-10 10:45:49 +00:00
|
|
|
data () {
|
2018-08-08 19:05:23 +00:00
|
|
|
return {
|
|
|
|
vueConfig: Vue.config
|
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
2019-07-10 10:45:49 +00:00
|
|
|
configKeys () {
|
2018-08-08 19:05:23 +00:00
|
|
|
return Object.keys(this.vueConfig).filter(k => ['silent', 'devtools', 'performance', 'productTip'].includes(k))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|