|
@@ -8,22 +8,22 @@ Vue.use(VueRouter)
|
|
|
|
|
|
// 重写push||replace方法
|
|
// 重写push||replace方法
|
|
// 先将原始push方法复制
|
|
// 先将原始push方法复制
|
|
-let originPush=VueRouter.prototype.push
|
|
|
|
-let originReplace=VueRouter.prototype.replace
|
|
|
|
|
|
+let originPush = VueRouter.prototype.push
|
|
|
|
+let originReplace = VueRouter.prototype.replace
|
|
// 重写
|
|
// 重写
|
|
-VueRouter.prototype.push=function(location,res,rej){
|
|
|
|
|
|
+VueRouter.prototype.push = function (location, res, rej) {
|
|
// 如果传了成功,失败的回调
|
|
// 如果传了成功,失败的回调
|
|
- if(res&&rej){
|
|
|
|
- originPush.call(this,location,res,rej)
|
|
|
|
- }else{
|
|
|
|
- originPush.call(this,location,()=>{},()=>{})
|
|
|
|
|
|
+ if (res && rej) {
|
|
|
|
+ originPush.call(this, location, res, rej)
|
|
|
|
+ } else {
|
|
|
|
+ originPush.call(this, location, () => { }, () => { })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-VueRouter.prototype.replace=function(location,res,rej){
|
|
|
|
|
|
+VueRouter.prototype.replace = function (location, res, rej) {
|
|
if (res && rej) {
|
|
if (res && rej) {
|
|
- originReplace.call(this, location, res, rej)
|
|
|
|
|
|
+ originReplace.call(this, location, res, rej)
|
|
} else {
|
|
} else {
|
|
- originReplace.call(this, location, () => { }, () => { })
|
|
|
|
|
|
+ originReplace.call(this, location, () => { }, () => { })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -64,7 +64,7 @@ const router = new VueRouter({
|
|
name: "FreeTrial",
|
|
name: "FreeTrial",
|
|
component: () => import("../views/FreeSign.vue"),
|
|
component: () => import("../views/FreeSign.vue"),
|
|
meta: {
|
|
meta: {
|
|
- title: 'Sign up | Free Trial PDF Tech Admin Console'
|
|
|
|
|
|
+ title: 'Sign up | Free Trial Admin Console'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|