Skip to content

Commit

Permalink
添加ico
Browse files Browse the repository at this point in the history
  • Loading branch information
meiweiyuxian committed Nov 30, 2019
1 parent 1260868 commit aa8d551
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .electron-vue/webpack.renderer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ let rendererConfig = {
new ExtractTextPlugin('styles.css'),
new HtmlWebpackPlugin({
filename: 'index.html',
favicon: 'src/renderer/assets/favicon.ico',
template: path.resolve(__dirname, '../src/index.ejs'),
minify: {
collapseWhitespace: true,
Expand Down
3 changes: 2 additions & 1 deletion .electron-vue/webpack.web.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ let webConfig = {
removeAttributeQuotes: true,
removeComments: true
},
nodeModules: false
nodeModules: false,
favicon: 'src/renderer/assets/favicon.ico',
}),
new webpack.DefinePlugin({
'process.env.IS_WEB': 'true'
Expand Down
Binary file added src/renderer/assets/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion src/renderer/components/LoginPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<img src="http://lucky-icon.meiweiyuxian.com/hio/pinwheel.jpg"/>
</div>
<div class="body">
<p class="tips">后台管理</p>
<p class="tips">海风小店</p>
<el-form ref="form" :model="form" :rules="rules" label-position="top">
<el-form-item label="" prop="username">
<el-input v-model="form.username" placeholder="用户名"></el-input>
Expand Down

0 comments on commit aa8d551

Please sign in to comment.