king
2024-06-07 8040a18c4b2a848d252bf01838f06c7aec1be9f3
src/api/index.js
@@ -865,8 +865,8 @@
    if (script) {
      try {
        // eslint-disable-next-line
        let func = new Function('axios', 'Api', 'param', 'position', 'systemType', script)
        let promise = func(axios, this, param, position, window.GLOB.systemType)
        let func = new Function('axios', 'Api', 'param', 'position', 'systemType', 'notification', script)
        let promise = func(axios, this, param, position, window.GLOB.systemType, notification)
        if (promise instanceof Promise) {
          return promise