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

页面修改

parent f912b667
...@@ -206,7 +206,6 @@ ...@@ -206,7 +206,6 @@
$route: { $route: {
handler: function (route) { handler: function (route) {
var newPath = route.path.split("?")[0].toLowerCase(); var newPath = route.path.split("?")[0].toLowerCase();
console.log("newPath",newPath)
switch (newPath) { switch (newPath) {
case "/course/chapter": case "/course/chapter":
this.IsShowLeft = true; this.IsShowLeft = true;
...@@ -221,7 +220,6 @@ ...@@ -221,7 +220,6 @@
this.IsShowLeft = true; this.IsShowLeft = true;
break; break;
} }
console.log(" this.IsShowLeft", this.IsShowLeft)
this.currentPath = route.path this.currentPath = route.path
}, },
immediate: true immediate: true
......
...@@ -30,12 +30,20 @@ Vue.use(VueRouter) ...@@ -30,12 +30,20 @@ Vue.use(VueRouter)
// } // }
export default new VueRouter({ export default new VueRouter({
scrollBehavior: () => ({ x: 0, y: 0 }), scrollBehavior: () => ({
routes, x: 0,
y: 0
// Leave these as they are and change in quasar.conf.js instead! }),
// quasar.conf.js -> build -> vueRouterMode routes,
// quasar.conf.js -> build -> publicPath
mode: process.env.VUE_ROUTER_MODE, // Leave these as they are and change in quasar.conf.js instead!
base: process.env.VUE_ROUTER_BASE // quasar.conf.js -> build -> vueRouterMode
}) // quasar.conf.js -> build -> publicPath
\ No newline at end of file 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