import { ExitOptions, ExitSuccess, Exit } from "../interface.uts" import { ExitFailImpl } from "../unierror.uts" /** * 实现uni.exit */ export const exit : Exit = function (options: ExitOptions | null) { let ret : ExitSuccess ={ errMsg: "exit:ok" } let err = new ExitFailImpl(12001); options?.fail?.(err) options?.success?.(ret) options?.complete?.(ret) // UTSAndroid.exit() }