Files
mes-ui-d2/src/pages/demo/playground/log/error/index.vue
liyang d841dc1ca8 playground
Former-commit-id: d4313aac163dc4f92c51252d306922dc7cd46496 [formerly d4313aac163dc4f92c51252d306922dc7cd46496 [formerly d4313aac163dc4f92c51252d306922dc7cd46496 [formerly d4313aac163dc4f92c51252d306922dc7cd46496 [formerly 8f13842546660b41f32ee8cea677b3209de4f0c2 [formerly a96a4b429c67a647f03669db6785ec1446251f44]]]]]
Former-commit-id: 76dfac0affc29a6a084b816e454228fc4e63f36f
Former-commit-id: 0a586a6f2c175433aea61919f3ab849424c18a53
Former-commit-id: 2cedc575e1ffec291718744aeec8eef97ad78844 [formerly fc782816dff65440d840e213445007ca24916b55]
Former-commit-id: a91ce07ac7ef5bd36e9da3797429af05ea237c29
Former-commit-id: 4a4de848a13dc6de7ba6a32989d25e9ca2e1300a
Former-commit-id: b3dcb91d14f99a5f9a420bc865953e87ad1711fc
Former-commit-id: 0e5de75b1702a2d7cde51e2ea8eef70516788614
Former-commit-id: d946abe5162521f707e7fcc5d64349843d3bb13a
2018-11-17 11:54:57 +08:00

21 lines
478 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<d2-container :filename="filename">
<template slot="header">捕获错误信息</template>
<p class="d2-mt-0">请打开浏览器控制台然后点击下面的按钮</p>
<el-button type="danger" @click="handleNewError">触发一个错误</el-button>
</d2-container>
</template>
<script>
export default {
data () {
filename: __filename
},
methods: {
handleNewError () {
console.log(a) // eslint-disable-line
}
}
}
</script>