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