xcx 4 lat temu
rodzic
commit
d15f0bbf82
5 zmienionych plików z 20 dodań i 1 usunięć
  1. 0
    1
      index.html
  2. 5
    0
      package-lock.json
  3. 1
    0
      package.json
  4. 4
    0
      src/main.js
  5. 10
    0
      src/util/vconsole.min.js

+ 0
- 1
index.html Wyświetl plik

@@ -7,7 +7,6 @@
7 7
   <meta name="referrer" content="no-referrer">
8 8
   <link rel="stylesheet" href="//at.alicdn.com/t/font_2022160_ekr8xwunv4j.css">
9 9
   <script src="//api.map.baidu.com/api?v=2.0&ak=NH4DjAzwLcPkHgwBLWcfeZfr3uUnTlwk"></script>
10
-  <script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
11 10
   <title>牛彩</title>
12 11
   <script>
13 12
     let Width = document.documentElement.clientWidth / 375 * 100

+ 5
- 0
package-lock.json Wyświetl plik

@@ -15135,6 +15135,11 @@
15135 15135
       "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
15136 15136
       "dev": true
15137 15137
     },
15138
+    "vconsole": {
15139
+      "version": "3.3.4",
15140
+      "resolved": "https://registry.npm.taobao.org/vconsole/download/vconsole-3.3.4.tgz",
15141
+      "integrity": "sha1-p9rNiIez0+kC6NGEJc2lbDTnf1E="
15142
+    },
15138 15143
     "vendors": {
15139 15144
       "version": "1.0.2",
15140 15145
       "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.2.tgz",

+ 1
- 0
package.json Wyświetl plik

@@ -27,6 +27,7 @@
27 27
     "qs": "^6.9.4",
28 28
     "script-loader": "^0.7.2",
29 29
     "vant": "^2.10.6",
30
+    "vconsole": "^3.3.4",
30 31
     "vue": "^2.5.2",
31 32
     "vue-amap": "^0.5.10",
32 33
     "vue-awesome-swiper": "^3.1.3",

+ 4
- 0
src/main.js Wyświetl plik

@@ -1,5 +1,6 @@
1 1
 // The Vue build version to load with the `import` command
2 2
 // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3
+/* eslint-disable */
3 4
 import Vue from 'vue'
4 5
 import App from './App'
5 6
 import router from './router'
@@ -7,6 +8,7 @@ import store from './store'
7 8
 import ToolClass from './util/PublicMethod'
8 9
 import VueScroller from 'vue-scroller'
9 10
 import { Dialog, Toast } from 'vant'
11
+import VConsole from 'vconsole'
10 12
 
11 13
 // import 'babel-polyfill'
12 14
 import Es6Promise from 'es6-promise'
@@ -16,6 +18,8 @@ import fundebugVue from 'fundebug-vue'
16 18
 fundebug.apikey = '91ab367d913dae6ed41e672b50a93ece3cc57a3caa86df3adb80cf0b20345ea5'
17 19
 fundebugVue(fundebug, Vue)
18 20
 
21
+new VConsole()
22
+
19 23
 require('es6-promise').polyfill()
20 24
 Es6Promise.polyfill()
21 25
 

+ 10
- 0
src/util/vconsole.min.js
Plik diff jest za duży
Wyświetl plik