mirror of
https://github.com/TangSengDaoDao/TangSengDaoDaoWeb
synced 2025-06-02 15:23:37 +00:00
feat: 新增截图
This commit is contained in:
parent
48bae77b27
commit
c6261d92df
@ -246,8 +246,8 @@ export default class BaseModule implements IModule {
|
|||||||
// 好友申请
|
// 好友申请
|
||||||
const friendApply = new FriendApply();
|
const friendApply = new FriendApply();
|
||||||
friendApply.uid = param.apply_uid;
|
friendApply.uid = param.apply_uid;
|
||||||
friendApply.name = param.apply_name;
|
friendApply.to_name = param.apply_name;
|
||||||
friendApply.state = FriendApplyState.apply;
|
friendApply.status = FriendApplyState.apply;
|
||||||
friendApply.remark = param.remark;
|
friendApply.remark = param.remark;
|
||||||
friendApply.token = param.token;
|
friendApply.token = param.token;
|
||||||
friendApply.unread = true;
|
friendApply.unread = true;
|
||||||
@ -272,7 +272,7 @@ export default class BaseModule implements IModule {
|
|||||||
for (const friendApply of friendApplys) {
|
for (const friendApply of friendApplys) {
|
||||||
if (toUID === friendApply.uid) {
|
if (toUID === friendApply.uid) {
|
||||||
friendApply.unread = false;
|
friendApply.unread = false;
|
||||||
friendApply.state = FriendApplyState.accepted;
|
friendApply.status = FriendApplyState.accepted;
|
||||||
WKApp.shared.updateFriendApply(friendApply);
|
WKApp.shared.updateFriendApply(friendApply);
|
||||||
WKApp.endpointManager.invokes(
|
WKApp.endpointManager.invokes(
|
||||||
EndpointCategory.friendApplyDataChange
|
EndpointCategory.friendApplyDataChange
|
||||||
@ -489,7 +489,11 @@ export default class BaseModule implements IModule {
|
|||||||
<IconClick
|
<IconClick
|
||||||
icon={require("./assets/toolbars/func_screenshot.svg").default}
|
icon={require("./assets/toolbars/func_screenshot.svg").default}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
window.open("https://www.snipaste.com");
|
if ((window as any).__POWERED_ELECTRON__) {
|
||||||
|
(window as any).ipc.send('screenshots-start', {})
|
||||||
|
} else {
|
||||||
|
window.open("https://www.snipaste.com");
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
></IconClick>
|
></IconClick>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user