fix: 修复 api 无变量时的地址变化检测问题

This commit is contained in:
廖学之 2023-07-03 21:32:07 +08:00
parent 2e0e45ee6b
commit fec1c1f3ea

View File

@ -696,6 +696,11 @@ export function isApiOutdated(
}
nextApi = normalizeApi(nextApi);
prevApi = (prevApi ? normalizeApi(prevApi) : prevApi) as ApiObject;
if (prevApi && prevApi.url !== nextApi.url) {
return true;
}
if (nextApi.autoRefresh === false) {
return false;
@ -709,8 +714,6 @@ export function isApiOutdated(
let isModified = false;
if (prevApi) {
prevApi = normalizeApi(prevApi);
if (nextApi.trackExpression || prevApi.trackExpression) {
isModified =
tokenize(prevApi.trackExpression || '', prevData) !==