dsh-agent-office 4.1.7 → 4.2.0
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 +7 -3
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
(() => {
|
|
1
2
|
/**
|
|
2
3
|
* 智能体办公室 —— DSH 客户端半侧。
|
|
3
4
|
*
|
|
@@ -102,7 +103,7 @@ window.__ModuleLoader__.load({
|
|
|
102
103
|
alt: '自定义猫咪预览',
|
|
103
104
|
style: { width: 96, height: 96, objectFit: 'contain', borderRadius: 12, border: '1px solid rgba(127,127,127,.3)', background: 'rgba(127,127,127,.08)', display: 'block', marginBottom: 12 },
|
|
104
105
|
}) : null,
|
|
105
|
-
jsx('div', { style: { display: 'flex', gap: 10, alignItems: 'center', flexWrap: 'wrap' }
|
|
106
|
+
jsx('div', { style: { display: 'flex', gap: 10, alignItems: 'center', flexWrap: 'wrap' }, children: [
|
|
106
107
|
jsx('label', {
|
|
107
108
|
style: { ...buttonStyle, display: 'inline-flex', alignItems: 'center', opacity: busy ? 0.6 : 1 },
|
|
108
109
|
children: [
|
|
@@ -111,7 +112,7 @@ window.__ModuleLoader__.load({
|
|
|
111
112
|
],
|
|
112
113
|
}),
|
|
113
114
|
jsx('button', { type: 'button', style: buttonStyle, onClick: reset, children: '恢复默认猫猫' }),
|
|
114
|
-
]),
|
|
115
|
+
] }),
|
|
115
116
|
message ? jsx('p', { style: { ...textStyle, marginTop: 10, marginBottom: 0 }, children: message }) : null,
|
|
116
117
|
],
|
|
117
118
|
})
|
|
@@ -208,8 +209,11 @@ window.__ModuleLoader__.load({
|
|
|
208
209
|
}
|
|
209
210
|
}
|
|
210
211
|
|
|
211
|
-
|
|
212
|
+
// 注意:apply 不能返回 module.exports,cordis 会把返回值当作 effect,
|
|
213
|
+
// 非函数/可迭代对象会抛 “Invalid effect”,导致设置分区注册失败。
|
|
214
|
+
return undefined
|
|
212
215
|
}
|
|
213
216
|
return module.exports
|
|
214
217
|
},
|
|
215
218
|
})
|
|
219
|
+
})()
|