优化代码

This commit is contained in:
RuoYi
2026-06-10 19:32:40 +08:00
parent ce866bebfb
commit d827a8159e
15 changed files with 70 additions and 67 deletions

View File

@@ -527,7 +527,7 @@ export default {
},
/** 选择角色权限范围触发 */
dataScopeSelectChange(value) {
if(value !== '2') {
if (value !== '2') {
this.$refs.dept.setCheckedKeys([])
}
},

View File

@@ -316,7 +316,7 @@ export default {
},
/** 选择生成模板触发 */
tplSelectChange(value) {
if(value !== 'sub') {
if (value !== 'sub') {
this.info.subTableName = ''
this.info.subTableFkName = ''
}

View File

@@ -262,7 +262,7 @@ export default {
this.$modal.msgError("请选择要生成的数据")
return
}
if(row.genType === "1") {
if (row.genType === "1") {
genCode(row.tableName).then(() => {
this.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath)
})