Explorar o código

fix: 修改报警问题导出currentUrl拼接方式为urlJoin

bxy hai 1 ano
pai
achega
27ae5a48c1

+ 2 - 1
src/views/datamanager/alertformdata/components/default/Default.vue

@@ -104,6 +104,7 @@
 
   import { useUserStore } from '@/store/modules/user';
   import { useGlobSetting } from '@/hooks/setting';
+  import urlJoin from 'url-join';
 
   const userStore = useUserStore();
   // const { aiOptions, manualOptions, getAIOptions, getManualOptions } = useIssueType();
@@ -169,7 +170,7 @@
       const month = String(now.getMonth() + 1).padStart(2, '0');
       const day = String(now.getDate()).padStart(2, '0');
       const currentDate = `${year}${month}${day}`;
-      const currentUrl = window.location.origin + window.location.pathname;
+      const currentUrl = urlJoin(window.location.origin, window.location.pathname);
 
       const requestBody = {
         endTime: queryForm.endTime,