dsh-aupdate 0.8.1 → 0.8.2
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/client.js +5 -0
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -1229,6 +1229,11 @@ window.__ModuleLoader__.load({
|
|
|
1229
1229
|
useEffect(() => () => {
|
|
1230
1230
|
if (timerRef.current !== null) clearTimeout(timerRef.current)
|
|
1231
1231
|
}, [])
|
|
1232
|
+
// 显示开关一改就刷镜像:就地重载是在 1.2 秒后发生的,那时 apply() 读的
|
|
1233
|
+
// 就是这份镜像——不跟着改,切换会看起来「没生效」,要再加载一次才对。
|
|
1234
|
+
useEffect(() => {
|
|
1235
|
+
if (draft !== null) writeDisplay(draft)
|
|
1236
|
+
}, [draft])
|
|
1232
1237
|
|
|
1233
1238
|
|
|
1234
1239
|
/** 把后端进度翻成一行中文/英文;没进度就退回普通「正在检查」。 */
|
package/package.json
CHANGED