|
|
@@ -1,6 +1,6 @@
|
|
|
import CONSTANT from '@/constant'
|
|
|
import { mobileReg } from '@/utils/tools/validate'
|
|
|
-import { getMiniAppUrl } from '@/utils/common'
|
|
|
+import { getMiniAppUrl, isWxBrowser } from '@/utils/common'
|
|
|
// 是否为空
|
|
|
const isEmpty = (val) => {
|
|
|
if (val instanceof Array) {
|
|
|
@@ -78,7 +78,11 @@ export async function getCheckLogin() {
|
|
|
status = true
|
|
|
} else {
|
|
|
// #ifdef H5
|
|
|
- location.href = `${CONSTANT.hostUrl}/auth/prepare?url=${encodeURIComponent(getMiniAppUrl(this.option, true))}`
|
|
|
+ if (isWxBrowser) {
|
|
|
+ location.href = `${CONSTANT.hostUrl}/auth/prepare?url=${encodeURIComponent(getMiniAppUrl(this.option, true))}`
|
|
|
+ } else {
|
|
|
+ this.$msg('请用微信浏览器打开!')
|
|
|
+ }
|
|
|
// #endif
|
|
|
// #ifndef H5
|
|
|
// #endif
|