feat: add selector module

This commit is contained in:
Qiuxia Fan
2021-12-15 15:43:38 +08:00
parent d00e547099
commit 9cb8e2b64d
15 changed files with 238 additions and 14 deletions

View File

@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable */
import axios from "axios";
const CancelToken = axios.CancelToken;
export const cancelToken = () =>
export const cancelToken = (): any =>
new CancelToken(function executor(c) {
const w = window as any;
w.axiosCancel.push(c);