refactor editor
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { ToastPlugin } from "tdesign-mobile-vue";
|
||||
|
||||
type MessageType = "warning" | "error";
|
||||
|
||||
export async function showPlatformMessage(type: MessageType, content: string) {
|
||||
await Promise.resolve(ToastPlugin[type]({
|
||||
message: content
|
||||
}));
|
||||
}
|
||||
Reference in New Issue
Block a user