Fixed style error.

pull/9/head
ruibaby 2019-05-07 23:12:51 +08:00
parent 47699b38a2
commit 0734ae74e6
2 changed files with 25 additions and 61 deletions

View File

@ -582,6 +582,15 @@ body {
.ant-comment-inner { .ant-comment-inner {
padding: 0 !important; padding: 0 !important;
.ant-comment-content {
.ant-comment-content-detail {
p {
margin-top: 1rem;
margin-bottom: 0;
}
}
}
} }
.bottom-control { .bottom-control {

View File

@ -6,40 +6,25 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
var createServerConfig = function(compilation) { // var createServerConfig = function(compilation) {
const configJson = { // const configJson = {
apiUrl: 'http://localhost:8090' // apiUrl: 'http://localhost:8090'
} // }
return JSON.stringify(configJson) // return JSON.stringify(configJson)
} // }
// vue.config.js // vue.config.js
module.exports = { module.exports = {
/*
Vue-cli3:
Crashed when using Webpack `import()` #2463
https://github.com/vuejs/vue-cli/issues/2463
*/
/*
pages: {
index: {
entry: 'src/main.js',
chunks: ['chunk-vendors', 'chunk-common', 'index']
}
},
*/
configureWebpack: { configureWebpack: {
plugins: [ plugins: [
// Ignore all locale files of moment.js new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), // new GenerateAssetPlugin({
new GenerateAssetPlugin({ // filename: 'config.json',
filename: 'config.json', // fn: (compilation, cb) => {
fn: (compilation, cb) => { // cb(null, createServerConfig(compilation))
cb(null, createServerConfig(compilation)) // },
}, // extraFiles: []
extraFiles: [] // })
})
] ]
}, },
@ -68,27 +53,12 @@ module.exports = {
.options({ .options({
name: 'assets/[name].[hash:8].[ext]' name: 'assets/[name].[hash:8].[ext]'
}) })
/* svgRule.oneOf('inline')
.resourceQuery(/inline/)
.use('vue-svg-loader')
.loader('vue-svg-loader')
.end()
.end()
.oneOf('external')
.use('file-loader')
.loader('file-loader')
.options({
name: 'assets/[name].[hash:8].[ext]'
})
*/
}, },
css: { css: {
loaderOptions: { loaderOptions: {
less: { less: {
modifyVars: { modifyVars: {
/* less 变量覆盖,用于自定义 ant design 主题 */
/* /*
'primary-color': '#F5222D', 'primary-color': '#F5222D',
'link-color': '#F5222D', 'link-color': '#F5222D',
@ -101,22 +71,7 @@ module.exports = {
}, },
devServer: { devServer: {
proxy: { proxy: {}
'/api': {
// target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro',
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro',
ws: false,
changeOrigin: true
},
'/gateway': {
target: 'https://www.easy-mock.com/mock/5b7bce071f130e5b7fe8cd7d/antd-pro',
ws: false,
changeOrigin: true,
pathRewrite: {
'^/gateway': '/api'
}
}
}
}, },
lintOnSave: undefined, lintOnSave: undefined,