qdmp-cli 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/api.js +6 -4
  2. package/package.json +1 -1
package/api.js CHANGED
@@ -28,10 +28,12 @@ export const request = async (url, options = {}, env = "prod") => {
28
28
  headers: { ...API_CONFIG.headers },
29
29
  ...options,
30
30
  };
31
- // 添加认证头(如果有 token)
32
- const token = getToken();
33
- if (token) {
34
- config.headers["authorization"] = `Bearer ${token}`;
31
+
32
+ if (url !== "/mp/v1/user/login") {
33
+ const token = getToken();
34
+ if (token) {
35
+ config.headers["authorization"] = `Bearer ${token}`;
36
+ }
35
37
  }
36
38
 
37
39
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qdmp-cli",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "qdmp-cli",
5
5
  "main": "index.js",
6
6
  "type": "module",