@tushi11/elpis 1.0.34 → 1.0.36

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.
@@ -68,26 +68,6 @@ const curl = ({
68
68
  const { value: token } = JSON.parse(data);
69
69
  headers[tokenName] = token;
70
70
  }
71
-
72
- // try {
73
- // const data = window.localStorage.getItem(tokenKey);
74
- // // 检查 data 是否存在且不为空
75
- // if (!data) {
76
- // // 可选:如果需要提示 token 不存在,可添加 feedback.msgWarning('未找到登录信息');
77
- // return; // 或跳过设置 token
78
- // }
79
- // // 解析 JSON 并容错
80
- // const parsedData = JSON.parse(data);
81
- // // 检查解析后的数据是否为对象且存在 value 属性
82
- // if (parsedData && typeof parsedData === 'object' && 'value' in parsedData) {
83
- // headers[tokenName] = parsedData.value;
84
- // } else {
85
- // feedback.msgWarning('登录信息格式错误');
86
- // }
87
- // } catch (error) {
88
- // // 捕获 JSON 解析错误或其他异常
89
- // feedback.msgError(`处理登录信息失败: ${error.message}`);
90
- // }
91
71
  }
92
72
 
93
73
  // 处理请求头
@@ -160,10 +160,6 @@ const axiosHooks = {
160
160
  feedback.closeLoading();
161
161
 
162
162
  if (!error.isCancel) {
163
- if (error.message.includes('code 401')) {
164
- console.log(error.message);
165
- return;
166
- }
167
163
  // 排除主动取消请求的错误(避免误提示)
168
164
  error.message && feedback.msgError(error.message);
169
165
  } else {
@@ -24,5 +24,4 @@
24
24
  console.log(e);
25
25
  }
26
26
  </script>
27
- <script src="https://www.sandbox.paypal.com/sdk/js?client-id=AWhwIJEyFRpQH2igaNQjVpFEefY6Zw3ozpuesHryZu8pDqsoSYjd8hjoXT0zvZ--7Lx_9RoxymY2EOlB&currency=USD"></script>
28
27
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tushi11/elpis",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,7 +17,6 @@
17
17
  "@babel/core": "^7.24.0",
18
18
  "@babel/plugin-transform-runtime": "^7.1.0",
19
19
  "@babel/preset-env": "^7.4.5",
20
- "@babel/runtime": "^7.28.4",
21
20
  "@element-plus/icons-vue": "^2.3.1",
22
21
  "@iconify-json/ep": "^1.2.3",
23
22
  "@iconify-json/mdi": "^1.2.3",
@@ -49,7 +48,6 @@
49
48
  "koa": "2.7.0",
50
49
  "koa-bodyparser": "^4.2.1",
51
50
  "koa-nunjucks-2": "^3.0.2",
52
- "koa-proxy": "^1.0.0-alpha.3",
53
51
  "koa-router": "^7.4.0",
54
52
  "koa-static": "^5.0.0",
55
53
  "koa-useragent": "2.0.0",
@@ -67,7 +65,6 @@
67
65
  "nprogress": "^0.2.0",
68
66
  "path": "^0.12.7",
69
67
  "pinia": "^2.1.6",
70
- "postcss": "^8.4.41",
71
68
  "postcss-loader": "^8.1.1",
72
69
  "postcss-pxtorem": "^6.1.0",
73
70
  "sass": "^1.77.8",
@@ -103,7 +100,9 @@
103
100
  "eslint-plugin-import": "^2.28.1",
104
101
  "eslint-plugin-vue": "^9.17.0",
105
102
  "ghooks": "~1.0.3",
103
+ "koa-proxy": "^1.0.0-alpha.3",
106
104
  "mocha": "^6.1.4",
105
+ "postcss": "^8.4.41",
107
106
  "supertest": "^4.0.2",
108
107
  "tailwindcss": "^3.4.10",
109
108
  "validate-commit-msg": "~2.14.0"