Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tower1229 committed Sep 15, 2018
1 parent 01b80a2 commit 9d209bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions view/demo/ota/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ define(function(require) {
var zip = api.require('zip');

//下载配置
var otaPath = "fs://Download/";
var otaPath = "fs://plugins/";

/*
* 插件列表数据
Expand Down Expand Up @@ -91,7 +91,6 @@ define(function(require) {
url: pagePath
});
} else {
app.toast('正在下载');
downloadPlugin(item);
}
};
Expand All @@ -103,6 +102,7 @@ define(function(require) {
if(!item.remote || !item.name){
return app.toast("该插件暂不可用");
}
app.toast('正在安装');
app.loading.show();
download(item.remote,{
path: otaPath,
Expand All @@ -125,7 +125,7 @@ define(function(require) {
myRender.data({
data: localPluginsData
});
app.toast('插件下载完成');
app.toast('插件安装完成');
} else {
alert(JSON.stringify(err));
}
Expand Down

0 comments on commit 9d209bd

Please sign in to comment.