From 5241aca9a3825eb47d08de6b2233dc120e408c4f Mon Sep 17 00:00:00 2001 From: xuyucheng Date: Fri, 21 Oct 2022 14:10:24 +0800 Subject: [PATCH] mode --- src/router/index.js | 4 ++-- vue.config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,