Browse Source

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

lanjianrong 4 years ago
parent
commit
dc3fb619db
1 changed files with 1 additions and 1 deletions
  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 = ''