File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33更新日志文档,版本顺序从新到旧,最新版本在最前(上)面。
44
5+ # 0.12.10
6+
7+ ## 修复
8+
9+ - 获取jwt令牌
10+
511# 0.12.9
612
713## 修复
Original file line number Diff line number Diff line change @@ -25,6 +25,21 @@ const doPostImportPath = () => {
2525 let data = {
2626 path: base64Path
2727 };
28+
29+ // 设置jwt token的请求头
30+ const userStoreJson = window .localStorage .getItem (' ikaros-store-user' );
31+ if (! userStoreJson ) {
32+ window .alert (" 操作取消,jwt令牌为空。" )
33+ return
34+ }
35+ const userStore = JSON .parse (userStoreJson );
36+ if (! userStore || ! userStore .jwtToken ) {
37+ window .alert (" 操作取消,jwt令牌为空。" )
38+ return
39+ }
40+ const jwtToken = userStore .jwtToken ;
41+ http .defaults .headers .common [' Authorization' ] = ' Bearer ' + jwtToken ;
42+
2843 var submitBtn = document .getElementById (' submitBtn' )
2944 console .debug (' submitBtn:' , submitBtn )
3045 if (submitBtn ) submitBtn .innerHTML = ' 处理中...'
Original file line number Diff line number Diff line change 11group =run.ikaros.plugin.alist
22description =A ikaros plugin for alist.
3- version =0.12.9
3+ version =0.12.10
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ name: PluginAList
44# plugin entry class that extends BasePlugin
55clazz : run.ikaros.plugin.alist.AListPlugin
66# plugin 'version' is a valid semantic version string (see semver.org).
7- version : 0.12.9
8- requires : " >=0.12.1 "
7+ version : 0.12.10
8+ requires : " >=0.12.0 "
99author :
1010 name : Ikaros OSS Team
1111 website : https://github.com/ikaros-dev
You can’t perform that action at this time.
0 commit comments