king
2024-07-23 e8b8c6418c393341da52f66ed47d735fa8f41ea3
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -1386,7 +1386,21 @@
      method: btn.method || 'post'
    }
    if (btn.cross === 'true') {
    if (btn.ContentType) {
      _params.headers = {
        'Content-Type': btn.ContentType
      }
    }
    if (btn.$outerScript) {
      if (JSON.stringify(param) !== '{}') {
        if (btn.stringify === 'qs') {
          _params.data = qs.stringify(param)
        } else {
          _params.data = param
        }
      }
    } else if (btn.cross === 'true') {
      if (JSON.stringify(param) !== '{}') {
        if (btn.stringify === 'qs') {
          _params.data = qs.stringify(param)
@@ -1420,13 +1434,7 @@
      _params.method = 'post'
    }
    if (btn.ContentType) {
      _params.headers = {
        'Content-Type': btn.ContentType
      }
    }
    Api.directRequest(_params).then(res => {
    Api.directRequest(_params, btn.$outerScript, 'outer').then(res => {
      if (typeof(res) !== 'object') {
        let error = '未知的返回结果!'