Commit 29d43abb authored by 张俊's avatar 张俊

修改nginx配置

parent d1cb6c1b
Pipeline #75502 passed with stage
...@@ -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;
} }
} }
......
...@@ -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("/");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment