sprintify-ui 0.10.22 → 0.10.23
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.
package/package.json
CHANGED
|
@@ -244,7 +244,8 @@ let requestId = '';
|
|
|
244
244
|
async function search() {
|
|
245
245
|
fetching.value = true;
|
|
246
246
|
showLoading.value = true;
|
|
247
|
-
|
|
247
|
+
const requestIdInternal = uniqueId();
|
|
248
|
+
requestId = requestIdInternal;
|
|
248
249
|
|
|
249
250
|
config.http
|
|
250
251
|
.get(props.url, {
|
|
@@ -255,7 +256,7 @@ async function search() {
|
|
|
255
256
|
})
|
|
256
257
|
.then((response: any) => {
|
|
257
258
|
|
|
258
|
-
if (
|
|
259
|
+
if (requestIdInternal !== requestId) {
|
|
259
260
|
return;
|
|
260
261
|
}
|
|
261
262
|
|
|
@@ -274,7 +275,7 @@ async function search() {
|
|
|
274
275
|
})
|
|
275
276
|
.finally(() => {
|
|
276
277
|
|
|
277
|
-
if (
|
|
278
|
+
if (requestIdInternal !== requestId) {
|
|
278
279
|
return;
|
|
279
280
|
}
|
|
280
281
|
|
|
@@ -183,7 +183,8 @@ const search = () => {
|
|
|
183
183
|
showLoading.value = true;
|
|
184
184
|
firstSearch.value = true;
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
const requestIdInternal = uniqueId();
|
|
187
|
+
requestId = requestIdInternal;
|
|
187
188
|
|
|
188
189
|
http
|
|
189
190
|
.get(props.url, {
|
|
@@ -194,7 +195,7 @@ const search = () => {
|
|
|
194
195
|
})
|
|
195
196
|
.then((response: any) => {
|
|
196
197
|
|
|
197
|
-
if (
|
|
198
|
+
if (requestIdInternal !== requestId) {
|
|
198
199
|
return;
|
|
199
200
|
}
|
|
200
201
|
|
|
@@ -213,7 +214,7 @@ const search = () => {
|
|
|
213
214
|
})
|
|
214
215
|
.finally(() => {
|
|
215
216
|
|
|
216
|
-
if (
|
|
217
|
+
if (requestIdInternal !== requestId) {
|
|
217
218
|
return;
|
|
218
219
|
}
|
|
219
220
|
|