张恒

更新依赖

1 # Electron-Vue-template 1 # Electron-Vue-template
2 2
3 -> 这是一个基于electron的vue最基本的模板,其中前端技术栈则用到vue全家桶,axios作为http请求,而本地数据库则是nedb。现在合并了花裤衩的vue-admin中的东西,由于我司需求方面,所以侧栏的渲染比较新奇,侧栏样式是在` src/renderer/layout/components/sidebar `文件夹中,大家可以根据需求进行个性化更改,鄙人后续会将这个和花裤衩大大的同步. 3 +> 这是一个基于electron的vue最基本的模板,其中前端技术栈则用到vue全家桶,axios作为http请求,而本地数据库则是nedb。现在合并了花裤衩的vue-admin中的东西侧栏样式是在` src/renderer/layout/components/sidebar `文件夹中,大家可以根据需求进行个性化更改,鄙人后续会将这个和花裤衩大大的同步.
4 4
5 - 因为花裤衩大大的ELECTRON版本已经一年没有更新了,而且ELECTRON,vue,elementui,都已经迭代太多,刚好我司有这方面的需求,我就在vue-electron脚手架生成的项目基础上,将花裤衩大大的项目核心组件提取出来合并到这个项目中,在我简单的封装了axios和db.以及electron常用的信息弹窗,错误弹窗,稍后的日子中我会慢慢完善这个文档,暂时如果有人需要使用这个项目,还请多多包含,因为文档不够完善,只能用过直接看代码,在路由页面我有注释. 5 - 因为花裤衩大大的ELECTRON版本已经一年没有更新了,而且ELECTRON,vue,elementui,都已经迭代太多,刚好我司有这方面的需求,我就在vue-electron脚手架生成的项目基础上,将花裤衩大大的项目核心组件提取出来合并到这个项目中,在我简单的封装了axios和db.以及electron常用的信息弹窗,错误弹窗,稍后的日子中我会慢慢完善这个文档,暂时如果有人需要使用这个项目,还请多多包含,因为文档不够完善,只能用过直接看代码,在路由页面我有注释.
6 6
......
此文件的差异太大,无法显示。
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
82 "vue": "^2.6.11", 82 "vue": "^2.6.11",
83 "vue-electron": "^1.0.6", 83 "vue-electron": "^1.0.6",
84 "vue-router": "^3.1.6", 84 "vue-router": "^3.1.6",
85 - "vuex": "^3.1.3", 85 + "vuex": "^3.2.0",
86 "vuex-electron": "^1.0.3" 86 "vuex-electron": "^1.0.3"
87 }, 87 },
88 "devDependencies": { 88 "devDependencies": {
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
108 "@babel/preset-env": "^7.9.5", 108 "@babel/preset-env": "^7.9.5",
109 "@babel/register": "^7.9.0", 109 "@babel/register": "^7.9.0",
110 "@babel/runtime": "^7.9.2", 110 "@babel/runtime": "^7.9.2",
111 - "ajv": "^6.12.0", 111 + "ajv": "^6.12.2",
112 "babel-eslint": "^9.0.0", 112 "babel-eslint": "^9.0.0",
113 "babel-loader": "^8.1.0", 113 "babel-loader": "^8.1.0",
114 "babel-minify-webpack-plugin": "^0.3.1", 114 "babel-minify-webpack-plugin": "^0.3.1",
...@@ -118,14 +118,14 @@ ...@@ -118,14 +118,14 @@
118 "cross-env": "^7.0.2", 118 "cross-env": "^7.0.2",
119 "css-loader": "^3.5.2", 119 "css-loader": "^3.5.2",
120 "del": "^5.1.0", 120 "del": "^5.1.0",
121 - "electron": "^8.2.2", 121 + "electron": "^8.2.3",
122 "electron-builder": "^22.4.1", 122 "electron-builder": "^22.4.1",
123 "electron-devtools-installer": "^3.0.0", 123 "electron-devtools-installer": "^3.0.0",
124 "eslint": "^6.8.0", 124 "eslint": "^6.8.0",
125 "eslint-config-standard": "^14.1.1", 125 "eslint-config-standard": "^14.1.1",
126 "eslint-friendly-formatter": "^4.0.1", 126 "eslint-friendly-formatter": "^4.0.1",
127 "eslint-loader": "^3.0.4", 127 "eslint-loader": "^3.0.4",
128 - "eslint-plugin-html": "^6.0.1", 128 + "eslint-plugin-html": "^6.0.2",
129 "eslint-plugin-import": "^2.20.2", 129 "eslint-plugin-import": "^2.20.2",
130 "eslint-plugin-node": "^9.2.0", 130 "eslint-plugin-node": "^9.2.0",
131 "eslint-plugin-promise": "^4.2.1", 131 "eslint-plugin-promise": "^4.2.1",
...@@ -137,11 +137,11 @@ ...@@ -137,11 +137,11 @@
137 "mini-css-extract-plugin": "0.9.0", 137 "mini-css-extract-plugin": "0.9.0",
138 "multispinner": "^0.2.1", 138 "multispinner": "^0.2.1",
139 "node-loader": "^0.6.0", 139 "node-loader": "^0.6.0",
140 - "node-sass": "^4.13.1", 140 + "node-sass": "^4.14.0",
141 "portfinder": "^1.0.25", 141 "portfinder": "^1.0.25",
142 "sass-loader": "^8.0.2", 142 "sass-loader": "^8.0.2",
143 "split2": "^3.1.1", 143 "split2": "^3.1.1",
144 - "style-loader": "^1.1.3", 144 + "style-loader": "^1.1.4",
145 "svg-sprite-loader": "^4.2.5", 145 "svg-sprite-loader": "^4.2.5",
146 "terser-webpack-plugin": "^2.3.5", 146 "terser-webpack-plugin": "^2.3.5",
147 "through2-filter": "^3.0.0", 147 "through2-filter": "^3.0.0",
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
150 "vue-loader": "^15.9.1", 150 "vue-loader": "^15.9.1",
151 "vue-style-loader": "^4.1.2", 151 "vue-style-loader": "^4.1.2",
152 "vue-template-compiler": "^2.6.11", 152 "vue-template-compiler": "^2.6.11",
153 - "webpack": "^4.42.1", 153 + "webpack": "^4.43.0",
154 "webpack-cli": "^3.3.11", 154 "webpack-cli": "^3.3.11",
155 "webpack-dev-server": "^3.10.3", 155 "webpack-dev-server": "^3.10.3",
156 "webpack-hot-middleware": "^2.25.0", 156 "webpack-hot-middleware": "^2.25.0",
......
...@@ -12,9 +12,8 @@ function onAppReady () { ...@@ -12,9 +12,8 @@ function onAppReady () {
12 app.isReady() ? onAppReady() : app.on('ready', onAppReady) 12 app.isReady() ? onAppReady() : app.on('ready', onAppReady)
13 13
14 app.on('window-all-closed', () => { 14 app.on('window-all-closed', () => {
15 - if (process.platform !== 'darwin') { 15 + // 所有平台均为所有窗口关闭就退出软件
16 - app.quit() 16 + app.quit()
17 - }
18 }) 17 })
19 app.on('browser-window-created', () => { 18 app.on('browser-window-created', () => {
20 console.log('window-created') 19 console.log('window-created')
......