【update】修改路径至UI

This commit is contained in:
OrangeM21
2020-05-26 19:48:39 +08:00
parent 4f565ea8dd
commit a23de329ba
3 changed files with 4 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
server {
listen 80;
location / {
try_files $uri / /index.html;
location ^~ /ui/ {
try_files $uri / /ui/index.html;
alias /opt/lina/;
}
}

View File

@@ -238,6 +238,7 @@ const createRouter = () => new Router({
// mode: 'history', // require service support
scrollBehavior: () => ({ y: 0 }),
mode: 'history',
base: '/ui/',
routes: constantRoutes
})

View File

@@ -24,7 +24,7 @@ module.exports = {
* In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: '/',
publicPath: '/ui/',
outputDir: 'dist',
assetsDir: 'assets',
lintOnSave: process.env.NODE_ENV === 'development',