mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-21 11:08:54 +00:00
【update】修改路径至UI
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
try_files $uri / /index.html;
|
||||
location ^~ /ui/ {
|
||||
try_files $uri / /ui/index.html;
|
||||
alias /opt/lina/;
|
||||
}
|
||||
}
|
||||
|
@@ -238,6 +238,7 @@ const createRouter = () => new Router({
|
||||
// mode: 'history', // require service support
|
||||
scrollBehavior: () => ({ y: 0 }),
|
||||
mode: 'history',
|
||||
base: '/ui/',
|
||||
routes: constantRoutes
|
||||
})
|
||||
|
||||
|
@@ -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',
|
||||
|
Reference in New Issue
Block a user