We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b8a4e5 commit 362a5f8Copy full SHA for 362a5f8
src/index.js
@@ -1,5 +1,5 @@
1
import axeCore from 'axe-core'
2
-import { checkAndReport } from './utils'
+import { checkAndReport, resetCache } from './utils'
3
import { OPTIONS_DEFAULT } from './constants'
4
5
export default function install (Vue, options) {
@@ -11,10 +11,21 @@ export default function install (Vue, options) {
11
12
// Rechecking when updating specific component
13
Vue.mixin({
14
+ methods: {
15
+ clearAxeConsole () {
16
+ console.clear()
17
+ resetCache()
18
+ }
19
+ },
20
updated () {
21
+ this.clearAxeConsole()
22
this.$nextTick(() => {
23
checkAndReport(this.$el)
24
})
25
26
+ // Used for change of route
27
+ beforeDestroy () {
28
29
}
30
31
0 commit comments