处理eslint问题

This commit is contained in:
zer0Black
2023-08-14 18:45:08 +08:00
parent cf97800d48
commit 9498a5c745
7 changed files with 12 additions and 19 deletions
+1 -1
View File
@@ -16,6 +16,6 @@ module.exports = {
'allowTemplateLiterals': true
}],
'semi': [2, 'never'],
'prefer-promise-reject-errors': 'warn'
'prefer-promise-reject-errors': 'off'
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
Jero-Web
====
当前最新版本: 2.4.6
当前最新版本: 2.5.0
Overview
----
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "jero-web",
"version": "2.4.6",
"version": "2.5.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
@@ -135,7 +135,7 @@ export default {
this.form.validateFields((err, values) => {
if (!err) {
that.confirmLoading = true
const params = Object.assign({ username: this.username, rsaPublicKey:this.rsaPublicKey}, values)
const params = Object.assign({ username: this.username, rsaPublicKey: this.rsaPublicKey }, values)
console.log('修改密码提交数据', params)
const encrypt = new JSEncrypt()
encrypt.setPublicKey(this.rsaPublicKey)
@@ -149,7 +149,7 @@ export default {
console.log(res)
that.$message.success(res.message)
that.close()
that.Logout().then(()=>{
that.Logout().then(() => {
window.location.replace('/user/login')
})
} else {
@@ -161,7 +161,6 @@ export default {
}
})
})
},
validateToNextPassword (rule, value, callback) {
const form = this.form
+5 -10
View File
@@ -316,9 +316,8 @@ export const JeroListMixin = {
modalLoading.destroy()
})
},
//导入前
beforeUpload( file) {
// console.log(file,"jjjj")
// 导入前
beforeUpload (file) {
if (file.size > 20 * 1024 * 1024) {
this.uploading = true
this.$message.warning('最大上传20M')
@@ -338,10 +337,7 @@ export const JeroListMixin = {
keyboard: false
})
}
this.loading = true
// 把知道了这个按钮去掉
this.$nextTick(() => {
document.getElementsByClassName('ant-modal-confirm-btns')[0].style = 'display:none'
})
@@ -360,9 +356,9 @@ export const JeroListMixin = {
this.$warning({
title: message,
content: (<div>
<span>{msg}</span><br />
<span>具体详情请 <a href={href} target="_blank" download={fileName}>点击下载</a> </span>
</div>
<span>{msg}</span><br />
<span>具体详情请 <a href={href} target="_blank" download={fileName}>点击下载</a> </span>
</div>
)
})
} else {
@@ -399,7 +395,6 @@ export const JeroListMixin = {
}
}
}
},
/* 图片预览 */
getImgView (text) {
-2
View File
@@ -21,8 +21,6 @@
</a-select>
</a-form-item>
</a-col>
<a-col :md="6" :sm="8">
<a-form-item label="真实名字">
<j-input placeholder="请输入真实名字" v-model="queryParam.realname"></j-input>
@@ -67,7 +67,8 @@ export default {
info = '请输入JSON字符串'
callback(info)
}
} catch {
} catch (error) {
console.log(error)
info = '请输入JSON字符串'
callback(info)
}