@scx-js/scx-admin 0.0.5 → 0.0.6

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/package.json +5 -5
  2. package/scx/scx-auth.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scx-js/scx-admin",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "SCX Admin",
5
5
  "license": "MIT",
6
6
  "author": "scx567888",
@@ -16,10 +16,10 @@
16
16
  "url": "https://github.com/scx567888/scx-js.git"
17
17
  },
18
18
  "dependencies": {
19
- "@scx-js/scx-app-x": "0.0.5",
20
- "@scx-js/scx-common": "0.0.5",
21
- "@scx-js/scx-dom": "0.0.5",
22
- "@scx-js/scx-http": "0.0.5",
19
+ "@scx-js/scx-app-x": "0.0.6",
20
+ "@scx-js/scx-common": "0.0.6",
21
+ "@scx-js/scx-dom": "0.0.6",
22
+ "@scx-js/scx-http": "0.0.6",
23
23
  "element-plus": "^2.9.3",
24
24
  "nprogress": "^0.2.0"
25
25
  },
package/scx/scx-auth.js CHANGED
@@ -100,6 +100,8 @@ class ScxAuth {
100
100
  this.req.post("api/auth/login", {
101
101
  username: username.trim(),
102
102
  password: password,
103
+ }, {
104
+ headers: this.AuthHeaders(),
103
105
  }).then(data => {
104
106
  this.setToken(data.token);
105
107
  resolve(data.token);