This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-fence.git

commit bccc09e870df69b5a9b6b9b00c4d2f17695f56ff
Author: liubao <[email protected]>
AuthorDate: Wed Aug 7 09:55:13 2024 +0800

    remove mock codes
---
 admin-website/src/main/web/.env                       | 1 -
 admin-website/src/main/web/config/vite.config.base.ts | 2 --
 admin-website/src/main/web/src/router/guard/index.ts  | 2 +-
 3 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/admin-website/src/main/web/.env b/admin-website/src/main/web/.env
index 423f7ce..46a2f57 100644
--- a/admin-website/src/main/web/.env
+++ b/admin-website/src/main/web/.env
@@ -1,4 +1,3 @@
 VITE_CONTEXT = /ui/admin/web/
 VITE_BASE_API = /api
 VITE_SERVER_HOST = http://127.0.0.1:7001
-VITE_USE_MOCK = false
\ No newline at end of file
diff --git a/admin-website/src/main/web/config/vite.config.base.ts 
b/admin-website/src/main/web/config/vite.config.base.ts
index 9ceed95..b44c6b6 100644
--- a/admin-website/src/main/web/config/vite.config.base.ts
+++ b/admin-website/src/main/web/config/vite.config.base.ts
@@ -4,8 +4,6 @@ import vue from '@vitejs/plugin-vue';
 import vueJsx from '@vitejs/plugin-vue-jsx';
 import svgLoader from 'vite-svg-loader';
 
-const useMock = !! process.env.VITE_USE_MOCK
-
 const config = {
   plugins: [
     vue(),
diff --git a/admin-website/src/main/web/src/router/guard/index.ts 
b/admin-website/src/main/web/src/router/guard/index.ts
index ce34d57..490ea49 100644
--- a/admin-website/src/main/web/src/router/guard/index.ts
+++ b/admin-website/src/main/web/src/router/guard/index.ts
@@ -11,5 +11,5 @@ function setupPageGuard(router: Router) {
 
 export default function createRouteGuard(router: Router) {
   setupPageGuard(router);
-  if(import.meta.env.VITE_USE_MOCK) setupPermissionGuard(router);
+  setupPermissionGuard(router);
 }

Reply via email to