处理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 'allowTemplateLiterals': true
}], }],
'semi': [2, 'never'], 'semi': [2, 'never'],
'prefer-promise-reject-errors': 'warn' 'prefer-promise-reject-errors': 'off'
} }
} }
+1 -1
View File
@@ -1,7 +1,7 @@
Jero-Web Jero-Web
==== ====
当前最新版本: 2.4.6 当前最新版本: 2.5.0
Overview Overview
---- ----
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "jero-web", "name": "jero-web",
"version": "2.4.6", "version": "2.5.0",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
@@ -135,7 +135,7 @@ export default {
this.form.validateFields((err, values) => { this.form.validateFields((err, values) => {
if (!err) { if (!err) {
that.confirmLoading = true 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) console.log('修改密码提交数据', params)
const encrypt = new JSEncrypt() const encrypt = new JSEncrypt()
encrypt.setPublicKey(this.rsaPublicKey) encrypt.setPublicKey(this.rsaPublicKey)
@@ -149,7 +149,7 @@ export default {
console.log(res) console.log(res)
that.$message.success(res.message) that.$message.success(res.message)
that.close() that.close()
that.Logout().then(()=>{ that.Logout().then(() => {
window.location.replace('/user/login') window.location.replace('/user/login')
}) })
} else { } else {
@@ -161,7 +161,6 @@ export default {
} }
}) })
}) })
}, },
validateToNextPassword (rule, value, callback) { validateToNextPassword (rule, value, callback) {
const form = this.form const form = this.form
+2 -7
View File
@@ -316,9 +316,8 @@ export const JeroListMixin = {
modalLoading.destroy() modalLoading.destroy()
}) })
}, },
//导入前 // 导入前
beforeUpload( file) { beforeUpload (file) {
// console.log(file,"jjjj")
if (file.size > 20 * 1024 * 1024) { if (file.size > 20 * 1024 * 1024) {
this.uploading = true this.uploading = true
this.$message.warning('最大上传20M') this.$message.warning('最大上传20M')
@@ -338,10 +337,7 @@ export const JeroListMixin = {
keyboard: false keyboard: false
}) })
} }
this.loading = true this.loading = true
// 把知道了这个按钮去掉
this.$nextTick(() => { this.$nextTick(() => {
document.getElementsByClassName('ant-modal-confirm-btns')[0].style = 'display:none' document.getElementsByClassName('ant-modal-confirm-btns')[0].style = 'display:none'
}) })
@@ -399,7 +395,6 @@ export const JeroListMixin = {
} }
} }
} }
}, },
/* 图片预览 */ /* 图片预览 */
getImgView (text) { getImgView (text) {
-2
View File
@@ -21,8 +21,6 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<a-form-item label="真实名字"> <a-form-item label="真实名字">
<j-input placeholder="请输入真实名字" v-model="queryParam.realname"></j-input> <j-input placeholder="请输入真实名字" v-model="queryParam.realname"></j-input>
@@ -67,7 +67,8 @@ export default {
info = '请输入JSON字符串' info = '请输入JSON字符串'
callback(info) callback(info)
} }
} catch { } catch (error) {
console.log(error)
info = '请输入JSON字符串' info = '请输入JSON字符串'
callback(info) callback(info)
} }