|
@@ -529,6 +529,10 @@ export default {
|
|
// 对微信做拦截
|
|
// 对微信做拦截
|
|
if (this.$userAgent.isWx) {
|
|
if (this.$userAgent.isWx) {
|
|
this.wxIntercept(() => {
|
|
this.wxIntercept(() => {
|
|
|
|
+ if(!this.$userAgent.isMiniProgram) {
|
|
|
|
+ this.$toast('无法返回上一页,可直接关闭页面')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
history.pushState(null, null, document.URL);
|
|
history.pushState(null, null, document.URL);
|
|
this.exitVisible = true;
|
|
this.exitVisible = true;
|
|
});
|
|
});
|
|
@@ -654,7 +658,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
if (
|
|
if (
|
|
this.$userAgent.isIos &&
|
|
this.$userAgent.isIos &&
|
|
- (!this.$userAgent.isWx || !this.$userAgent.isMiniProgram)
|
|
|
|
|
|
+ !this.$userAgent.isWx
|
|
) {
|
|
) {
|
|
await this.$native.clipboard.writeText(res.data.link);
|
|
await this.$native.clipboard.writeText(res.data.link);
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|