mirror of
https://github.com/chillzhuang/Saber.git
synced 2025-04-17 02:19:22 +08:00
⚡ 优化代码
This commit is contained in:
parent
6ae37e2753
commit
30cfb38ffb
@ -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: "用户昵称",
|
||||||
|
@ -2,38 +2,38 @@
|
|||||||
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) => {
|
||||||
//忽略的打包文件
|
//忽略的打包文件
|
||||||
config.externals({
|
config.externals({
|
||||||
'vue': 'Vue',
|
'vue': 'Vue',
|
||||||
'vue-router': 'VueRouter',
|
'vue-router': 'VueRouter',
|
||||||
'vuex': 'Vuex',
|
'vuex': 'Vuex',
|
||||||
'axios': 'axios',
|
'axios': 'axios',
|
||||||
'element-ui': 'ELEMENT',
|
'element-ui': 'ELEMENT',
|
||||||
})
|
})
|
||||||
const entry = config.entry('app')
|
const entry = config.entry('app')
|
||||||
entry
|
entry
|
||||||
.add('babel-polyfill')
|
.add('babel-polyfill')
|
||||||
.end()
|
.end()
|
||||||
entry
|
entry
|
||||||
.add('classlist-polyfill')
|
.add('classlist-polyfill')
|
||||||
.end()
|
.end()
|
||||||
entry
|
entry
|
||||||
.add('@/mock')
|
.add('@/mock')
|
||||||
.end()
|
.end()
|
||||||
},
|
},
|
||||||
devServer: {
|
devServer: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: url,
|
target: url,
|
||||||
ws: true,
|
ws: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/api': '/'
|
'^/api': '/'
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user