Commit 8af95728 by zeven

更新程序语音提示

parent cadf0c0e
......@@ -9,6 +9,7 @@ import Toast from './components/Toast';
import router from './router';
import models from './models';
import dva from './utils/dva';
import Speech from './utils/Speech';
import Restart from './utils/Restart';
import Installer from './utils/Installer';
import {counterInterval} from './utils/authInterval';
......@@ -101,8 +102,10 @@ class App extends React.Component {
return;
}
const file = match[2];
Speech.speak('正在下载程序,请稍后');
Installer.download(url, file).then(apk => {
if (apk) {
Speech.speak('程序下载完成,正在安装');
Installer.install(apk);
}
});
......
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 to comment