1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-13 23:20:12 +08:00

Update index.js

This commit is contained in:
D See Ker 2020-11-08 22:43:07 +00:00 committed by GitHub
parent d43b55966e
commit 287bd17937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,7 +389,7 @@ export const asyncRoutes = [
const createRouter = () => new Router({ const createRouter = () => new Router({
// mode: 'history', // require service support // mode: 'history', // require service support
// base: process.env.VUE_APP_SRC, // public // base: process.env.VUE_APP_SRC, // use in hitory mode when publicPath is set
scrollBehavior: () => ({ y: 0 }), scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes routes: constantRoutes
}) })