Commit 825e8dff by chuzhixin

Merge branch 'master' of https://github.com/chuzhixin/vue-admin-beautiful into master

parents 488ebde5 d49ac8f4
......@@ -3,8 +3,8 @@
* @description 全局变量配置
*/
module.exports = {
// 开发以及部署时的URL 如"/test/"
publicPath: "",
// 开发以及部署时的URL
publicPath: "/",
// 生产环境构建文件的目录名
outputDir: "dist",
// 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录。
......
......@@ -468,7 +468,7 @@ export const asyncRoutes = [
];
const router = new VueRouter({
base: routerMode === "history" ? publicPath : "",
base: publicPath,
mode: routerMode,
scrollBehavior: () => ({
y: 0,
......@@ -485,7 +485,7 @@ VueRouter.prototype.push = function push(location, onResolve, onReject) {
export function resetRouter() {
router.matcher = new VueRouter({
base: routerMode === "history" ? publicPath : "",
base: publicPath,
mode: routerMode,
scrollBehavior: () => ({
y: 0,
......
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