|
|
@@ -385,27 +385,27 @@
|
|
|
this.userInfo = this.$utils.getStorage('userInfo');
|
|
|
}
|
|
|
|
|
|
- if(!this.$utils.getStorage('chromePath')){ // 没有设置浏览器地址的时候判断
|
|
|
- let flag = true;
|
|
|
- for(let i = 0; i<this.edgePath.length; i++){
|
|
|
- if (fs.existsSync(this.edgePath[i])) {
|
|
|
- flag = false;
|
|
|
- this.$utils.setStorage('chromePath', this.edgePath[i]);
|
|
|
- this.$utils.setStorage('chromeType', 1);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+ // if(!this.$utils.getStorage('chromePath')){ // 没有设置浏览器地址的时候判断
|
|
|
+ // let flag = true;
|
|
|
+ // for(let i = 0; i<this.edgePath.length; i++){
|
|
|
+ // if (fs.existsSync(this.edgePath[i])) {
|
|
|
+ // flag = false;
|
|
|
+ // this.$utils.setStorage('chromePath', this.edgePath[i]);
|
|
|
+ // this.$utils.setStorage('chromeType', 1);
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
- if(flag){ // 当前电脑没有找到edge浏览器
|
|
|
- this.chromeType = 2;
|
|
|
- this.$utils.setStorage('chromeType', 2);
|
|
|
- // this.$notify.error({
|
|
|
- // title: '提示',
|
|
|
- // message: '未扫描到Microsoft Edge浏览器地址,请手动在软件设置中配置浏览器地址,否则软件将无法使用!',
|
|
|
- // duration: 0
|
|
|
- // });
|
|
|
- }
|
|
|
- }
|
|
|
+ // if(flag){ // 当前电脑没有找到edge浏览器
|
|
|
+ // this.chromeType = 2;
|
|
|
+ // this.$utils.setStorage('chromeType', 2);
|
|
|
+ // // this.$notify.error({
|
|
|
+ // // title: '提示',
|
|
|
+ // // message: '未扫描到Microsoft Edge浏览器地址,请手动在软件设置中配置浏览器地址,否则软件将无法使用!',
|
|
|
+ // // duration: 0
|
|
|
+ // // });
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
window.addEventListener('message', e => {
|
|
|
if (e.origin === 'https://www.xingyousoft.com') {
|