Commit 402b611a authored by Smile's avatar Smile Committed by wux

关闭应用时,没有获取环境导致报错

parent ead90267
...@@ -595,6 +595,7 @@ export default { ...@@ -595,6 +595,7 @@ export default {
// this.getUserInfo() // this.getUserInfo()
}, },
toCloseApp() { toCloseApp() {
let platform = uni.getSystemInfoSync().platform.toLocaleLowerCase()
if (platform == 'ios') { if (platform == 'ios') {
//ios使用原来的quit()方法失效 //ios使用原来的quit()方法失效
plus.ios.import("UIApplication").sharedApplication().performSelector("exit") plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment