feat(SAT): add CesiumViewer component and utility functions; update dependencies
This commit is contained in:
12
src/utils/index.ts
Normal file
12
src/utils/index.ts
Normal file
@ -0,0 +1,12 @@
|
||||
export async function PromiseConfirmationService({ message }: { message: string }) {
|
||||
return await new Promise<boolean>((reslove) => {
|
||||
ConfirmationService.require({
|
||||
position: 'bottomright',
|
||||
modal: false,
|
||||
header: '提示',
|
||||
message: message,
|
||||
accept: () => reslove(true),
|
||||
reject: () => reslove(false),
|
||||
});
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user