同步强基接口适配

Signed-off-by: fanchenxuan <fanchenxuan@huawei.com>
This commit is contained in:
fanchenxuan
2025-05-20 16:31:12 +08:00
parent 925d641128
commit ed2f1093b5
@@ -294,7 +294,7 @@ export class GrantDialogModel extends BaseModel {
let systemPasteboardDataSource: string = '';
try {
let systemPasteboard: pasteboard.SystemPasteboard = pasteboard.getSystemPasteboard();
let data: string = systemPasteboard.getDataSource();
let data = systemPasteboard.getDataSource();
systemPasteboardDataSource = data || '';
} catch (error) {
Log.error(`getSystemPasteboard faild, code: ${error.code}, message: ${error.message}.`);