Commit 80abf9a5 authored by 黄奎's avatar 黄奎

页面修改

parent f912b667
......@@ -206,7 +206,6 @@
$route: {
handler: function (route) {
var newPath = route.path.split("?")[0].toLowerCase();
console.log("newPath",newPath)
switch (newPath) {
case "/course/chapter":
this.IsShowLeft = true;
......@@ -221,7 +220,6 @@
this.IsShowLeft = true;
break;
}
console.log(" this.IsShowLeft", this.IsShowLeft)
this.currentPath = route.path
},
immediate: true
......
......@@ -30,12 +30,20 @@ Vue.use(VueRouter)
// }
export default new VueRouter({
scrollBehavior: () => ({ x: 0, y: 0 }),
routes,
// Leave these as they are and change in quasar.conf.js instead!
// quasar.conf.js -> build -> vueRouterMode
// quasar.conf.js -> build -> publicPath
mode: process.env.VUE_ROUTER_MODE,
base: process.env.VUE_ROUTER_BASE
})
\ No newline at end of file
scrollBehavior: () => ({
x: 0,
y: 0
}),
routes,
// Leave these as they are and change in quasar.conf.js instead!
// quasar.conf.js -> build -> vueRouterMode
// quasar.conf.js -> build -> publicPath
mode: process.env.VUE_ROUTER_MODE,
base: process.env.VUE_ROUTER_BASE
})
const originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err);
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment