@deepwhale-cn/dsh-douyin-desk 0.2.0 → 0.2.1
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/lib/client.js +0 -13
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -682,19 +682,6 @@ window.__ModuleLoader__.load({
|
|
|
682
682
|
console.warn('[douyin-desk] 侧栏注册失败:' + slot, error);
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
|
-
// 插件页标签也保留(老版本 plugins.tab,新版本 settings.plugins.tab)。
|
|
686
|
-
for (const slot of ['settings.plugins.tab', 'plugins.tab']) {
|
|
687
|
-
try {
|
|
688
|
-
ctx.slots.inject(slot, () => ctx.slots.register({
|
|
689
|
-
name: slot,
|
|
690
|
-
id: 'douyin',
|
|
691
|
-
label: () => '深鲸抖音复盘',
|
|
692
|
-
inject: () => ({}),
|
|
693
|
-
}, DouyinPanel));
|
|
694
|
-
} catch (error) {
|
|
695
|
-
console.warn('[douyin-desk] 标签注册失败:' + slot, error);
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
685
|
}
|
|
699
686
|
|
|
700
687
|
exports.inject = inject;
|