mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
refactor(cloudfunc) concat -> array spread
This commit is contained in:
parent
f223cd7959
commit
79a08a36fa
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ function getPathLink(url, prefix, template) {
|
|||
.split('/')
|
||||
.slice(1, -1);
|
||||
|
||||
const allNames = ['/'].concat(names);
|
||||
const allNames = ['/', ...names];
|
||||
const length = allNames.length - 1;
|
||||
|
||||
let path = '/';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue