diff --git a/.env b/.env index 76b49edc..3f7b9be8 100644 --- a/.env +++ b/.env @@ -12,7 +12,7 @@ VITE_ICON_PREFIX=icon VITE_ICON_LOCAL_PREFIX=icon-local # auth route mode: static | dynamic -VITE_AUTH_ROUTE_MODE=static +VITE_AUTH_ROUTE_MODE=dynamic # static auth route home VITE_ROUTE_HOME=home @@ -37,3 +37,6 @@ VITE_SERVICE_MODAL_LOGOUT_CODES=7777,7778 # token expired codes of backend service, when the code is received, it will refresh the token and resend the request VITE_SERVICE_EXPIRED_TOKEN_CODES=9999,9998 + +# when the route mode is static, the defined super role +VITE_STATIC_SUPER_ROLE=R_SUPER diff --git a/src/components/common/exception-base.vue b/src/components/common/exception-base.vue index a861d3ae..4b1dfc27 100644 --- a/src/components/common/exception-base.vue +++ b/src/components/common/exception-base.vue @@ -1,6 +1,7 @@ diff --git a/src/views/function/super-page/index.vue b/src/views/function/super-page/index.vue new file mode 100644 index 00000000..2a654c50 --- /dev/null +++ b/src/views/function/super-page/index.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/views/function/toggle-auth/index.vue b/src/views/function/toggle-auth/index.vue new file mode 100644 index 00000000..bf1b38be --- /dev/null +++ b/src/views/function/toggle-auth/index.vue @@ -0,0 +1,98 @@ + + + + +