Last active
August 19, 2018 18:50
-
-
Save enkot/ccc9f427e4c754317e6feb5c1780f6c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// main.js | |
Vue.config.errorHandler = function (error) { | |
Toast.error(error.message) | |
console.warn(error.message) | |
} | |
// App.vue | |
@Component | |
export default class App extends Vue { | |
async created() { | |
const data = await api.getData() // throws Error | |
// ... | |
} | |
mounted() { | |
this.name = this.name.toUpperCase() // throws TypeError | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment