浏览代码

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 = ''