hookehuyr

fix 西园寺特有,拿到新域名跳转

...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-26 23:52:36 3 * @Date: 2022-05-26 23:52:36
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2024-08-21 10:23:24 5 + * @LastEditTime: 2024-09-19 10:41:45
6 * @FilePath: /data-table/src/App.vue 6 * @FilePath: /data-table/src/App.vue
7 * @Description: 7 * @Description:
8 --> 8 -->
...@@ -83,6 +83,13 @@ onMounted(async () => { ...@@ -83,6 +83,13 @@ onMounted(async () => {
83 if (data.length) { 83 if (data.length) {
84 Object.assign(form_setting, data[0]['property_list'], data[0]['extend']); 84 Object.assign(form_setting, data[0]['property_list'], data[0]['extend']);
85 } 85 }
86 + // TAG: 西园寺特有,拿到新域名跳转
87 + if (form_setting.redirect_host) {
88 + let host = location.host;
89 + let url = location.href;
90 + let new_url = url.replace(host, form_setting.redirect_host);
91 + location.href = new_url;
92 + }
86 // TAG: 是否显示流程按钮 93 // TAG: 是否显示流程按钮
87 if (page_type === 'add' && form_setting.flow_id) { 94 if (page_type === 'add' && form_setting.flow_id) {
88 form_setting.is_flow = true; 95 form_setting.is_flow = true;
......