测试插件
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user