Skip to content

Commit

Permalink
fix(integration): dropbox connect
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Oct 20, 2021
1 parent dea1658 commit 6785293
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/use/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const useStart: Callback<void> = () => {
let str = ''
let firstQuery = false
let finish = false
let intersection = 0

for (let i = 0; i < route.fullPath.length; i++) {
const letter = route.fullPath.charAt(i)
Expand All @@ -92,7 +93,7 @@ export const useStart: Callback<void> = () => {
return
}

if (letter === '&') {
if (letter === '&' && intersection === 2) {
firstQuery = false
finish = true
}
Expand All @@ -101,7 +102,11 @@ export const useStart: Callback<void> = () => {
str += letter
}

if (letter === '=') firstQuery = true
if (letter === '=') intersection++

if (letter === '=' && intersection === 2) {
firstQuery = true
}
}
}
}
Expand Down

0 comments on commit 6785293

Please sign in to comment.