|
@@ -31,9 +31,11 @@ export const myRequest = (options) => {
|
|
|
|
|
|
// 修复首页操作失败bug start
|
|
|
let notIndexFail2 = ['Index/getDataStatistics'];
|
|
|
- if (notIndexFail2.includes(options.url)) {
|
|
|
- window.location.href = 'https://qhome.usky.cn/index.html#/pages/index/index';
|
|
|
+ let ua = navigator.userAgent.toLowerCase();
|
|
|
+ if (notIndexFail2.includes(options.url)&& ua.match(/MicroMessenger/i) == "micromessenger") {
|
|
|
+ window.location.href = 'https://qhome.usky.cn/index.html#/pages/index/index';
|
|
|
}else{
|
|
|
+
|
|
|
return uni.showToast({
|
|
|
title: res.data.msg ? res.data.msg : "获取数据失败",
|
|
|
icon: "none"
|