mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 修复 api 无变量时的地址变化检测问题
This commit is contained in:
parent
2e0e45ee6b
commit
fec1c1f3ea
@ -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) !==
|
||||
|
Loading…
Reference in New Issue
Block a user