Showing
1 changed file
with
3 additions
and
3 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2022-04-18 15:59:42 | 2 | * @Date: 2022-04-18 15:59:42 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-12-06 16:51:59 | 4 | + * @LastEditTime: 2023-02-09 16:48:05 |
| 5 | * @FilePath: /data-table/src/utils/tools.js | 5 | * @FilePath: /data-table/src/utils/tools.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -106,8 +106,8 @@ const getUrlParams = (url) => { | ... | @@ -106,8 +106,8 @@ const getUrlParams = (url) => { |
| 106 | let res = arr[1].split('&'); | 106 | let res = arr[1].split('&'); |
| 107 | let items = {}; | 107 | let items = {}; |
| 108 | for (let i = 0; i < res.length; i++) { | 108 | for (let i = 0; i < res.length; i++) { |
| 109 | - let a = res[i].split('='); | 109 | + let [key, value] = res[i].split('='); |
| 110 | - items[a[0]] = a[1]; | 110 | + items[key] = value; |
| 111 | } | 111 | } |
| 112 | return items | 112 | return items |
| 113 | } | 113 | } | ... | ... |
-
Please register or login to post a comment