Skip to content

Commit a13e93f

Browse files
committed
fastclick
1 parent 8852001 commit a13e93f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"dependencies": {
1010
"axios": "^0.27.2",
1111
"core-js": "^3.8.3",
12+
"fastclick": "^1.0.6",
1213
"vant": "^3.5.0",
1314
"vue": "^3.2.13",
1415
"vue-router": "^4.0.3"

src/main.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import App from './App.vue'
33
import router from './router'
44
import axios from './api/axios'
55
import './assets/css/app.css'
6+
import FastClick from 'fastclick'
67
import {
78
Cell,
89
CellGroup,
@@ -56,3 +57,13 @@ app
5657
.use(ConfigProvider)
5758

5859
app.mount('#app')
60+
61+
if ('addEventListener' in document) {
62+
document.addEventListener(
63+
'DOMContentLoaded',
64+
function () {
65+
FastClick.attach(document.body)
66+
},
67+
false
68+
)
69+
}

0 commit comments

Comments
 (0)