zhongrj
2023-12-28 e7cdb1e0e4bca531dad85ecb67e14a2d4ad59554
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<template>
  <basic-container>
    <h3>请打开浏览器控制台,然后点击下面的按钮</h3>
    <el-button type="danger"
               size="small"
               @click="handleNewError">触发一个错误
    </el-button>
  </basic-container>
</template>
 
<script>
  export default {
    methods: {
      handleNewError() {
        window.console.log(a); // eslint-disable-line
      }
    }
  };
</script>