💄 外观调整

This commit is contained in:
Vanessa 2023-01-27 14:33:03 +08:00
parent 95a01f5a16
commit 01e9b06847
4 changed files with 3 additions and 15 deletions

View file

@ -351,9 +351,11 @@ export const processSync = (data?: IWebSocketData) => {
}
return;
}
iconElement.firstElementChild.classList.remove("fn__rotate");
if (data.code === 0) { // syncing
iconElement.classList.add("toolbar__item--active");
useElement.setAttribute("xlink:href", "#iconCloudSync");
iconElement.firstElementChild.classList.add("fn__rotate");
useElement.setAttribute("xlink:href", "#iconRefresh");
} else if (data.code === 2) { // error
iconElement.classList.remove("toolbar__item--active");
useElement.setAttribute("xlink:href", "#iconCloudError");