测试插件

This commit is contained in:
2023-09-12 08:46:09 +08:00
parent f8999ef0be
commit a7f0c20b6f
3 changed files with 25 additions and 1 deletions

View File

@@ -26,6 +26,7 @@
<el-button @click="docPrint">文件打印</el-button>
<el-button @click="versionCheck">版本升级</el-button>
<el-button @click="installAPK" type="danger">安装apk</el-button>
<el-button @click="customPlugin">自定义插件</el-button>
</div>
</body>
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
@@ -40,6 +41,19 @@
}, 600);
},
methods: {
customPlugin() {
console.log(cordovaTest);
cordovaTest.coolMethod(
"param",
(res) => {
console.log(res);
this.$message.success(res);
},
(e) => {
this.$message.error(e);
}
);
},
installAPK() {
let url = "http://3000.taoya.art/app.apk";
var filename = url.split("/").pop();