Преглед на файлове

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

lanjianrong преди 5 години
родител
ревизия
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 = ''