diff --git a/build/nginx.conf b/build/nginx.conf index 3adfa26068cc2535325833362f3ede8ced71b286..eb3cde4a11b6e3b326e94844efc408caf7a6ea35 100644 --- a/build/nginx.conf +++ b/build/nginx.conf @@ -28,11 +28,11 @@ http { # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; - location /klmy/ui { + location /apaas/ui { root /usr/share/nginx/html; index index.html index.htm; - try_files $uri $uri/ /klmy/ui/index.html; + try_files $uri $uri/ /apaas/ui/index.html; } } diff --git a/src/router/index.js b/src/router/index.js index 8e58b08531f9fa20d0f5b2361d1088042a9e8f11..36d60302576561a61ca4a9c17ee7b10140d4b990 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,6 +2,7 @@ import Vue from "vue"; import Router from "vue-router"; import {getCookie} from '../utils/common' import store from "@/store"; +import ElementUI from 'element-ui'; Vue.use(Router); @@ -868,7 +869,7 @@ router.beforeEach(async (to, from, next) => { ) { next(); } else { - // ElementUI.Message.error(`未登录无法访问该页面`); + ElementUI.Message.error(`未登录无法访问该页面`); next("/"); }