Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3e07ea1

Browse filesBrowse files
committed
回退到可以打包 Mac、Linux、Win的版本,如果想要打包 Cordova 的包,只要打开这里的三行注释即可
1 parent c8accb0 commit 3e07ea1
Copy full SHA for 3e07ea1

File tree

1 file changed

+14
-14
lines changed
Filter options

1 file changed

+14
-14
lines changed

‎src/main.js

Copy file name to clipboardExpand all lines: src/main.js
+14-14Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Layout from './components/layout'
99
import * as uiv from 'uiv'
1010
import hljs from 'highlight.js'
1111
import VeeValidate from 'vee-validate'
12-
import cordova from './mobile-index'
12+
// import cordova from './mobile-index' // 打开此行代码的注释可以打 cordova 的包
1313

1414
Vue.use(uiv)
1515
Vue.use(ElementUI)
@@ -25,18 +25,18 @@ Vue.directive('hljs', el => {
2525
Array.prototype.forEach.call(blocks, hljs.highlightBlock)
2626
})
2727

28-
cordova.onDeviceReady = () => {
28+
// cordova.onDeviceReady = () => { // 打开此行代码的注释可以打 cordova 的包
2929
/* eslint-disable no-new */
30-
new Vue({
31-
el: '#app',
32-
router,
33-
store,
34-
template: '<Layout/>',
35-
components: {
36-
Layout
37-
}
38-
// render: h => h(App)
39-
})
40-
}
30+
new Vue({
31+
el: '#app',
32+
router,
33+
store,
34+
template: '<Layout/>',
35+
components: {
36+
Layout
37+
}
38+
// render: h => h(App)
39+
})
40+
// }
4141

42-
cordova.initialize()
42+
// cordova.initialize() // 打开此行代码的注释可以打 cordova 的包

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.