优化代码

This commit is contained in:
smallchill 2019-02-22 19:27:28 +08:00
parent 6ae37e2753
commit 30cfb38ffb
2 changed files with 38 additions and 35 deletions

View File

@ -86,7 +86,6 @@
index: true,
selection: true,
viewBtn: true,
calcHeight:800,
column: [
{
label: "登录账号",
@ -103,13 +102,17 @@
label: '密码',
prop: 'password',
hide: true,
rules: [{validator: validatePass, trigger: 'blur'}]
editDisplay: false,
viewDisplay: false,
rules: [{required: true, validator: validatePass, trigger: 'blur'}]
},
{
label: '确认密码',
prop: 'password2',
hide: true,
rules: [{validator: validatePass2, trigger: 'blur'}]
editDisplay: false,
viewDisplay: false,
rules: [{required: true, validator: validatePass2, trigger: 'blur'}]
},
{
label: "用户昵称",

View File

@ -2,38 +2,38 @@
let baseUrl = './'
let url = 'http://localhost:8800'
module.exports = {
baseUrl: baseUrl, // 根据你的实际情况更改这里
lintOnSave: true,
productionSourceMap: false,
chainWebpack: (config) => {
//忽略的打包文件
config.externals({
'vue': 'Vue',
'vue-router': 'VueRouter',
'vuex': 'Vuex',
'axios': 'axios',
'element-ui': 'ELEMENT',
})
const entry = config.entry('app')
entry
.add('babel-polyfill')
.end()
entry
.add('classlist-polyfill')
.end()
entry
.add('@/mock')
.end()
},
devServer: {
proxy: {
'/api': {
target: url,
ws: true,
pathRewrite: {
'^/api': '/'
}
}
publicPath: baseUrl, // 根据你的实际情况更改这里
lintOnSave: true,
productionSourceMap: false,
chainWebpack: (config) => {
//忽略的打包文件
config.externals({
'vue': 'Vue',
'vue-router': 'VueRouter',
'vuex': 'Vuex',
'axios': 'axios',
'element-ui': 'ELEMENT',
})
const entry = config.entry('app')
entry
.add('babel-polyfill')
.end()
entry
.add('classlist-polyfill')
.end()
entry
.add('@/mock')
.end()
},
devServer: {
proxy: {
'/api': {
target: url,
ws: true,
pathRewrite: {
'^/api': '/'
}
}
}
}
}