From bab168f83d792686bec7ea039d6c0253a4ff64b0 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 11 Mar 2021 13:30:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E5=90=8E=E7=AB=AF=E4=B8=80?= =?UTF-8?q?=E8=B5=B7=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../auth/service/impl/ShiroServiceImpl.java | 9 +++++- frontend/.env.production | 2 +- frontend/pom.xml | 31 ++++++++----------- 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/backend/src/main/java/io/dataease/auth/service/impl/ShiroServiceImpl.java b/backend/src/main/java/io/dataease/auth/service/impl/ShiroServiceImpl.java index b0b52dc508..a2e94f7c78 100644 --- a/backend/src/main/java/io/dataease/auth/service/impl/ShiroServiceImpl.java +++ b/backend/src/main/java/io/dataease/auth/service/impl/ShiroServiceImpl.java @@ -30,12 +30,19 @@ public class ShiroServiceImpl implements ShiroService { filterChainDefinitionMap.put("/v3/**","anon"); filterChainDefinitionMap.put("/static/**", "anon"); + filterChainDefinitionMap.put("/css/**", "anon"); + filterChainDefinitionMap.put("/js/**", "anon"); + filterChainDefinitionMap.put("/img/**", "anon"); + filterChainDefinitionMap.put("/fonts/**", "anon"); + filterChainDefinitionMap.put("/favicon.ico", "anon"); + filterChainDefinitionMap.put("/", "anon"); + filterChainDefinitionMap.put("/index.html", "anon"); + // filterChainDefinitionMap.put("/401", "anon"); // filterChainDefinitionMap.put("/404", "anon"); // 登陆 // filterChainDefinitionMap.put("/api/auth/logout", "anon"); - filterChainDefinitionMap.put("/api/auth/test", "anon"); filterChainDefinitionMap.put("/api/auth/login", "anon"); // 退出 diff --git a/frontend/.env.production b/frontend/.env.production index 80c810301f..a33fdd2479 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = 'http://localhost:8081/' diff --git a/frontend/pom.xml b/frontend/pom.xml index 7c5d7f7756..42b160c006 100644 --- a/frontend/pom.xml +++ b/frontend/pom.xml @@ -26,40 +26,35 @@ ${frontend-maven-plugin.version} - - install node and yarn + install node and npm - install-node-and-yarn + install-node-and-npm - - generate-resources - v12.14.1 - v1.21.1 + + v8.11.1 + 5.6.0 - + - yarn install + npm install - yarn + npm + - install - + - yarn build + npm run build - yarn + npm - build + run build