@michengai/dsh-skills-manager 0.1.22 → 0.1.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/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/lib/client.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -115,7 +115,7 @@ dsh plugin --profile web add @michengai/dsh-skills-manager@latest --registry=htt
|
|
|
115
115
|
dsh --profile web --dump-config
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
To pin a release, replace `@latest` with a version such as `@0.1.
|
|
118
|
+
To pin a release, replace `@latest` with a version such as `@0.1.23`.
|
|
119
119
|
|
|
120
120
|
The configuration output should contain `skills-manager`. Restart DSH Web and hard-refresh the browser. Do not copy client files manually: `dsh plugin add` also applies `cordis.patch.yml`.
|
|
121
121
|
|
package/README.zh-CN.md
CHANGED
|
@@ -115,7 +115,7 @@ dsh plugin --profile web add @michengai/dsh-skills-manager@latest --registry=htt
|
|
|
115
115
|
dsh --profile web --dump-config
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
需要钉死某一版时,把 `@latest` 换成具体版本,例如 `@0.1.
|
|
118
|
+
需要钉死某一版时,把 `@latest` 换成具体版本,例如 `@0.1.23`。
|
|
119
119
|
|
|
120
120
|
配置输出中应包含 `skills-manager`。安装后重启 DSH Web 并在浏览器硬刷新。不要手工复制客户端文件,`dsh plugin add` 会同时应用 `cordis.patch.yml`。
|
|
121
121
|
|
package/lib/client.js
CHANGED
|
@@ -577,8 +577,9 @@ window.__ModuleLoader__.load({
|
|
|
577
577
|
if (!busy && inputRef.current) inputRef.current.click();
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
-
function executeImport(source, conflict) {
|
|
581
|
-
|
|
580
|
+
function executeImport(source, conflict, chained) {
|
|
581
|
+
// busy 闭包值停留在点击那次渲染,读不到 setBusy("import-check");链式放行必须显式传参。
|
|
582
|
+
if (inflightRef.current && !chained) return;
|
|
582
583
|
inflightRef.current = true;
|
|
583
584
|
setBusy("import");
|
|
584
585
|
setConfirmImport(null);
|
|
@@ -609,7 +610,7 @@ window.__ModuleLoader__.load({
|
|
|
609
610
|
setConfirmImport({ source: selected.source, conflicts: data.conflicts });
|
|
610
611
|
return;
|
|
611
612
|
}
|
|
612
|
-
executeImport(selected.source, "skip");
|
|
613
|
+
executeImport(selected.source, "skip", true);
|
|
613
614
|
}).catch(function (error) {
|
|
614
615
|
inflightRef.current = false;
|
|
615
616
|
setBusy(null);
|
package/package.json
CHANGED