Lita-Tako 4 ヶ月 前
コミット
6c0f3d26c3
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      src/api/system/index.js

+ 1 - 1
src/api/system/index.js

@@ -174,7 +174,7 @@ export function getgetTreeList(page, query) {
174 174
  * {"funcId":40,"funcName":"待办与审批","funcUrl":"123","funcSort":1,"parentId":8,"icoUrl":null,"status":null,"remark":null,"delFlag":null,"children":null}
175 175
  */
176 176
 export const saveFuncInfo = (data) => {
177
-  const formData = Object.keys(data).map(k => `${k}=${encodeURIComponent(data[k])}`).join('&').replaceAll('_____PLACEHOLDER_PLUS_____', '+')
177
+  const formData = Object.keys(data).map(k => `${k}=${encodeURIComponent(data[k])}`).join('&').replace(/_____PLACEHOLDER_PLUS_____/g, '+')
178 178
   return request({
179 179
     url: `${depot_system}/funcInfo/save`,
180 180
     method: 'post',