快速打印log插件和记录log插件

Former-commit-id: c60fd22146486b9ae40a017f54eac22861d63cfe [formerly c60fd22146486b9ae40a017f54eac22861d63cfe [formerly c60fd22146486b9ae40a017f54eac22861d63cfe [formerly c60fd22146486b9ae40a017f54eac22861d63cfe [formerly b19f1dba3b8716c4ec0693a83882bf9f0c10ee3e [formerly 163a31502dcf1a0e10a73b65e29e7260d36afcc9]]]]]
Former-commit-id: e5b3780565f7a1645b4fe207c41035513515ca0b
Former-commit-id: ef544bb7604fc43b2b88c3890e4b3cc799df7845
Former-commit-id: 915e4dc616ce563853356e5839acd156fd4fd69f [formerly e920289a8782940d1b5c3f498afd483c364462a0]
Former-commit-id: 0085d6c633ce61d78083afdfbff15a2a77d5db42
Former-commit-id: 1eea98ae975cb2f3d79a81eaf39e7b3865264f82
Former-commit-id: 1cf7126ab22e15afbf99c7bbb1e250e6dfcae5e9
Former-commit-id: a680edf65c0ce825cc494e085e9f0e90f2775127
Former-commit-id: c400c163f351492944c53fbd1a59e27c4bb25fa5
This commit is contained in:
liyang
2018-08-02 19:44:45 +08:00
parent 924f3f75b0
commit a20f12629a
8 changed files with 59 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
<template>
<d2-container>
<template slot="header">错误信息</template>
<template slot="header">捕获错误信息</template>
<p class="d2-mt-0">请打开浏览器控制台然后点击下面的按钮</p>
<el-button type="danger" @click="handleNewError">触发一个错误</el-button>
</d2-container>

View File

@@ -0,0 +1,27 @@
<template>
<d2-container>
<template slot="header">记录日志内容</template>
<p class="d2-mt-0">在下方输入你要记录的日志然后点击记录按钮</p>
<el-input
v-model="text"
placeholder="日志内容"
class="d2-mr-10"
style="width: 200px;"/>
<el-button type="primary" @click="handleAdd">记录</el-button>
</d2-container>
</template>
<script>
export default {
data () {
return {
text: 'D2Admin log info'
}
},
methods: {
handleAdd () {
this.$logAdd(this.text)
}
}
}
</script>