소스 검색

fix: 修复材料预付款列表页报错问题

lanjianrong 4 년 전
부모
커밋
dc3fb619db
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/public/js/advance.js

+ 1 - 1
app/public/js/advance.js

@@ -52,7 +52,7 @@ $(document).ready(function () {
 
     $('a[data-target="#sp-list" ]').on('click', function () {
         const id = $(this).data('vid')
-        postData(`${window.location.pathname}/${id}/auditors`, {}, (res) => {
+        postData(`${window.location.pathname.replace('/material', '')}/${id}/auditors`, {}, (res) => {
             const { auditHistory, auditors, user } = res
             let auditorsHTML = ''
             let historyHTML = ''