Browse Source

chore: legacy

master
wangxiang 2 years ago
parent
commit
5c2f972d8e
No known key found for this signature in database
GPG Key ID: 1BA7946AB6B232E4
  1. 6
      docker/test/default.conf
  2. 16
      src/views/system/ssoLogin/kics/index.vue

6
docker/test/default.conf

@ -27,13 +27,13 @@ server {
# 代理访问后端微服务网关地址 # 代理访问后端微服务网关地址
location ^~/prod-api/ { location ^~/prod-api/ {
rewrite ^/prod-api/(.*)$ /$1 break; rewrite ^/prod-api/(.*)$ /$1 break;
proxy_pass http://kicc-gateway:9999; proxy_pass http://localhost:9999;
} }
# 代理访问后端上传地址 # 代理访问后端上传地址
location ^~/prod-upload { location ^~/prod-upload {
rewrite ^/prod-upload(.*)$ /system_proxy/system/file/upload break; rewrite ^/prod-upload(.*)$ /system_proxy/system/file/upload break;
proxy_pass http://kicc-gateway:9999; proxy_pass http://localhost:9999;
} }
# 代理访问后端文件在线预览地址 # 代理访问后端文件在线预览地址
@ -43,7 +43,7 @@ server {
# 代理访问后端微服务报表地址,绕过https不能内嵌http # 代理访问后端微服务报表地址,绕过https不能内嵌http
location ^~/ureport/ { location ^~/ureport/ {
proxy_pass http://kicc-gateway:9999/report_proxy/ureport/; proxy_pass http://localhost:9999/report_proxy/ureport/;
} }
# 代理访问后端微服务大屏设计器地址(直接代理线上) # 代理访问后端微服务大屏设计器地址(直接代理线上)

16
src/views/system/ssoLogin/kics/index.vue

@ -68,11 +68,12 @@
<footer class="footer text-white text-center"> <footer class="footer text-white text-center">
<a href="#">Copyright</a> © 2021-2023 KANGLAI BIOLOGY BEAUTY <a href="#">Copyright</a> © 2021-2023 KANGLAI BIOLOGY BEAUTY
<a href="https://beian.miit.gov.cn/" target="_blank">湘ICP备20001570号-2</a> <a href="https://beian.miit.gov.cn/" target="_blank">湘ICP备20001570号-2</a>
<a class="legacy-login" target="_blank" @click="handleLegacyLogin">回到旧版登陆</a>
</footer> </footer>
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { reactive, ref } from 'vue'; import { reactive, ref, unref } from 'vue';
import { useUserStore } from '/@/store/modules/user'; import { useUserStore } from '/@/store/modules/user';
import { useMessage } from '/@/hooks/web/useMessage'; import { useMessage } from '/@/hooks/web/useMessage';
import { useI18n } from '/@/hooks/web/useI18n'; import { useI18n } from '/@/hooks/web/useI18n';
@ -82,9 +83,11 @@
import { useLocaleStore } from '/@/store/modules/locale'; import { useLocaleStore } from '/@/store/modules/locale';
import { useDesign } from '/@/hooks/web/useDesign'; import { useDesign } from '/@/hooks/web/useDesign';
import { useAppInject } from '/@/hooks/web/useAppInject'; import { useAppInject } from '/@/hooks/web/useAppInject';
import { useRouter } from 'vue-router';
const { currentRoute, replace } = useRouter();
const { params, query } = unref(currentRoute);
const { prefixCls } = useDesign('sso-kics-login'); const { prefixCls } = useDesign('sso-kics-login');
const { notification, createMessage } = useMessage(); const { notification, createMessage } = useMessage();
const userStore = useUserStore(); const userStore = useUserStore();
const { t } = useI18n(); const { t } = useI18n();
@ -124,6 +127,10 @@
} }
} }
function handleLegacyLogin() {
query?.redirect && window.location.replace(`${query?.redirect}/login`);
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@ -189,6 +196,11 @@
a { a {
color: #FFFFFF; color: #FFFFFF;
} }
.legacy-login {
color: rgb(29 78 216);
font-size: 12px;
margin-left: 5px;
}
} }
</style> </style>

Loading…
Cancel
Save