File tree 5 files changed +16
-14
lines changed
5 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ import 'muse-ui/dist/muse-ui.css';
11
11
import './styles/main.styl' ;
12
12
import socket from './socket' ;
13
13
import { queryString } from '@utils/queryString' ;
14
- import ios from './utils/ios' ;
15
-
16
- // 微信 回弹 bug
17
- ios ( ) ;
18
14
19
15
import vuePicturePreview from './components/photo-viewer' ;
20
16
Vue . use ( vuePicturePreview ) ;
Original file line number Diff line number Diff line change @@ -2,16 +2,13 @@ export default function () {
2
2
const u = navigator . userAgent ;
3
3
const isIOS = ! ! u . match ( / \( i [ ^ ; ] + ; ( U ; ) ? C P U .+ M a c O S X / ) ; // ios终端
4
4
const classList = 'input' ;
5
- setTimeout ( ( ) => {
6
- [ ] . forEach . call ( document . querySelectorAll ( classList ) , function ( el ) {
7
- el . addEventListener ( "blur" , function ( e ) {
8
- console . log ( 1111 ) ;
9
- if ( isIOS ) {
10
- blurAdjust ( ) ;
11
- }
12
- } ) ;
5
+ [ ] . forEach . call ( document . querySelectorAll ( classList ) , function ( el ) {
6
+ el . addEventListener ( "blur" , function ( e ) {
7
+ if ( isIOS ) {
8
+ blurAdjust ( ) ;
9
+ }
13
10
} ) ;
14
- } , 1000 ) ;
11
+ } ) ;
15
12
16
13
// 解决苹果不回弹页面 https://blog.csdn.net/m0_37520980/article/details/86305488
17
14
function blurAdjust ( e ) {
Original file line number Diff line number Diff line change 120
120
import Alert from ' @components/Alert' ;
121
121
import debounce from ' lodash/debounce' ;
122
122
import url from ' @api/server' ;
123
- import { setTimeout } from ' timers' ;
123
+ import { setTimeout } from ' timers' ;
124
+ import ios from ' @utils/ios' ;
124
125
125
126
export default {
126
127
data () {
@@ -157,6 +158,8 @@ import { setTimeout } from 'timers';
157
158
this .noticeVersion = res .data .version ;
158
159
},
159
160
async mounted () {
161
+ // 微信 回弹 bug
162
+ ios ();
160
163
this .container = document .querySelector (' .chat-inner' );
161
164
// socket内部,this指针指向问题
162
165
const that = this ;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import SvgModal from "@components/svg-modal";
20
20
import Alert from " @components/Alert" ;
21
21
import Toast from " @components/Toast" ;
22
22
import socket from " ../socket" ;
23
+ import ios from ' @utils/ios' ;
23
24
// import Loading from '../components/loading/loading'
24
25
25
26
export default {
@@ -73,6 +74,8 @@ export default {
73
74
}
74
75
},
75
76
mounted () {
77
+ // 微信 回弹 bug
78
+ ios ();
76
79
this .$store .commit (" setTab" , false );
77
80
if (! this .getSvgModal ) {
78
81
const svg = SvgModal ();
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import SvgModal from "@components/svg-modal";
23
23
import Alert from " @components/Alert" ;
24
24
import Toast from " @components/Toast" ;
25
25
import socket from " ../socket" ;
26
+ import ios from ' @utils/ios' ;
26
27
27
28
export default {
28
29
methods: {
@@ -73,6 +74,8 @@ export default {
73
74
}
74
75
},
75
76
mounted () {
77
+ // 微信 回弹 bug
78
+ ios ();
76
79
this .$store .commit (" setTab" , false );
77
80
if (! this .svgmodal ) {
78
81
const svg = SvgModal ();
You can’t perform that action at this time.
0 commit comments