diff --git a/src/router/index.js b/src/router/index.js index c4af15d..8edbae1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,9 +10,9 @@ Vue.use(Router) const router = new Router({ routes: [{ path: '/', - redirect: '/home' + redirect: '/webapp/data_manager' }, { - path: '/home', + path: '/webapp/data_manager', name: '首页', meta: { requireAuth: false diff --git a/vue.config.js b/vue.config.js index 188c28e..4aad76a 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,5 +1,5 @@ module.exports = { - publicPath: process.env.NODE_ENV === "production" ? "/" : "/", + publicPath: process.env.NODE_ENV === "production" ? "/webapp/data_manager" : "/", outputDir: "dist", productionSourceMap: false, lintOnSave: true,