提交 224400af 编写于 作者: 杜庆泉's avatar 杜庆泉

增加 quitApp 示例界面

上级 34a4df98
......@@ -131,6 +131,12 @@
"style": {
"navigationBarTitleText": "消息提示框"
}
},
{
"path": "pages/API/quitApp/quitApp",
"style": {
"navigationBarTitleText": "退出应用"
}
}
],
"globalStyle": {
......
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-btn-v">
<button class="uni-btn" type="default" @tap="quitTap">退出当前应用</button>
</view>
</view>
</view>
</template>
<script lang="ts">
export default {
data() {
return {
title: 'quitApp'
}
},
methods: {
quitTap: function () {
UTSAndroid.quitApp()
}
}
}
</script>
\ No newline at end of file
......@@ -197,6 +197,13 @@
url: "/platforms/app-plus/orientation/orientation",
},
//#endif
//#ifdef APP-ANDROID
{
name: "退出应用",
url: "quitApp",
enable: true
}
//#endif
] as Page[],
},
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册