优化代码

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

View File

@ -2,7 +2,7 @@
let baseUrl = './' let baseUrl = './'
let url = 'http://localhost:8800' let url = 'http://localhost:8800'
module.exports = { module.exports = {
baseUrl: baseUrl, // 根据你的实际情况更改这里 publicPath: baseUrl, // 根据你的实际情况更改这里
lintOnSave: true, lintOnSave: true,
productionSourceMap: false, productionSourceMap: false,
chainWebpack: (config) => { chainWebpack: (config) => {