Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
29d43abb
Commit
29d43abb
authored
May 05, 2022
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改nginx配置
parent
d1cb6c1b
Pipeline
#75502
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
build/nginx.conf
build/nginx.conf
+2
-2
src/router/index.js
src/router/index.js
+2
-1
No files found.
build/nginx.conf
View file @
29d43abb
...
@@ -28,11 +28,11 @@ http {
...
@@ -28,11 +28,11 @@ http {
# redirect server error pages to the static page /50x.html
# redirect server error pages to the static page /50x.html
#
#
error_page
500
502
503
504
/50x.html
;
error_page
500
502
503
504
/50x.html
;
location
/
klmy
/ui
{
location
/
apaas
/ui
{
root
/usr/share/nginx/html
;
root
/usr/share/nginx/html
;
index
index.html
index.htm
;
index
index.html
index.htm
;
try_files
$uri
$uri
/
/
klmy
/ui/index.html
;
try_files
$uri
$uri
/
/
apaas
/ui/index.html
;
}
}
}
}
...
...
src/router/index.js
View file @
29d43abb
...
@@ -2,6 +2,7 @@ import Vue from "vue";
...
@@ -2,6 +2,7 @@ import Vue from "vue";
import
Router
from
"
vue-router
"
;
import
Router
from
"
vue-router
"
;
import
{
getCookie
}
from
'
../utils/common
'
import
{
getCookie
}
from
'
../utils/common
'
import
store
from
"
@/store
"
;
import
store
from
"
@/store
"
;
import
ElementUI
from
'
element-ui
'
;
Vue
.
use
(
Router
);
Vue
.
use
(
Router
);
...
@@ -868,7 +869,7 @@ router.beforeEach(async (to, from, next) => {
...
@@ -868,7 +869,7 @@ router.beforeEach(async (to, from, next) => {
)
{
)
{
next
();
next
();
}
else
{
}
else
{
//
ElementUI.Message.error(`未登录无法访问该页面`);
ElementUI
.
Message
.
error
(
`未登录无法访问该页面`
);
next
(
"
/
"
);
next
(
"
/
"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment