ios 退出问题

master
yeliang-king 2022-12-08 11:18:54 +08:00
parent 09b7ece510
commit fa6f571f61
1 changed files with 4 additions and 3 deletions

View File

@ -60,9 +60,10 @@ export default {
//
cancel(){
// #ifdef APP-PLUS
const threadClass = plus.ios.importClass("NSThread");
const mainThread = plus.ios.invoke(threadClass, "mainThread");
plus.ios.invoke(mainThread, "exit")
// const threadClass = plus.ios.importClass("NSThread");
// const mainThread = plus.ios.invoke(threadClass, "mainThread");
// plus.ios.invoke(mainThread, "exit")
plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
// #endif
},
confirm() {