Commit 8d926c4e by zhongqm

update:app.js新加方法

parent f140607d
Showing with 10 additions and 1 deletions
......@@ -92,7 +92,16 @@ const app = {
},
saveToGallery (url) {
return app.callApi(MODULE_NAMES.MIDEA_COMMON, 'saveToGallery', [url])
}
},
openUrl: function (url) {
return app.callApi(MODULE_NAMES.MIDEA_COMMON, 'openSysBrowser', [url])
},
showPdf: function (param) {
return app.callApi(MODULE_NAMES.MIDEA_PDF, 'showPdf', param)
},
showTxt: function (param) {
return app.callApi(MODULE_NAMES.MIDEA_PDF, 'showTxt', param)
},
}
export default app
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 sign in to comment