We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 765c94b commit 9d1d9bcCopy full SHA for 9d1d9bc
src/main.jsx
@@ -20,6 +20,16 @@ Vue.component('t-page-header');
20
21
Vue.prototype.$request = axiosInstance;
22
23
+const originPush = VueRouter.prototype.push;
24
+VueRouter.prototype.push = function push(location) {
25
+ return originPush.call(this, location).catch((err) => err);
26
+};
27
+
28
+const originReplace = VueRouter.prototype.replace;
29
+VueRouter.prototype.replace = function replace(location) {
30
+ return originReplace.call(this, location).catch((err) => err);
31
32
33
Vue.config.productionTip = false;
34
sync(store, router);
35
new Vue({
0 commit comments