guoqing hace 2 años
padre
commit
754936c52d
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      src/utils/request.js

+ 1 - 3
src/utils/request.js

@@ -91,9 +91,7 @@ var http = {
                 method: 'get',
                 params: params,
                 config: config,
-                cancelToken: new axios.CancelToken(function executor(c) {
-                    cancel = c;
-                })
+                cancelToken: new axios.CancelToken(function executor(c) {})
             }).then((response) => {
                 resolve(response.data)
             }).catch((error) => {