前端迁移

This commit is contained in:
zhangzhiqiang
2022-12-08 11:11:28 +08:00
parent a1ce0dfaed
commit 7902ae10f6
2 changed files with 15 additions and 10 deletions

View File

@@ -46,6 +46,7 @@ security:
# 排除路径 # 排除路径
excludes: excludes:
# 认证 # 认证
- /login
- /auth/login - /auth/login
- /auth/code - /auth/code
- /auth/logout - /auth/logout
@@ -94,3 +95,4 @@ sa-token:
is-print: false is-print: false
# token 前缀 # token 前缀
token-prefix: Bearer token-prefix: Bearer

View File

@@ -199,6 +199,8 @@ export default {
// 触发单选 // 触发单选
handleCurrentChange(val) { handleCurrentChange(val) {
if (val) { if (val) {
this.$refs.table.clearSelection()
this.$refs.table.toggleRowSelection(val, true)
const _this = this const _this = this
// 清空菜单的选中 // 清空菜单的选中
this.$refs.menu.setCheckedKeys([]) this.$refs.menu.setCheckedKeys([])
@@ -246,7 +248,7 @@ export default {
crudRoles.editMenu(role).then(() => { crudRoles.editMenu(role).then(() => {
this.crud.notify('保存成功', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify('保存成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.menuLoading = false this.menuLoading = false
this.update() // this.update()
}).catch(err => { }).catch(err => {
this.menuLoading = false this.menuLoading = false
console.log(err.response.data.message) console.log(err.response.data.message)
@@ -254,6 +256,7 @@ export default {
}, },
// 改变数据 // 改变数据
update() { update() {
debugger
// 无刷新更新 表格数据 // 无刷新更新 表格数据
crudRoles.get(this.currentId).then(res => { crudRoles.get(this.currentId).then(res => {
for (let i = 0; i < this.crud.data.length; i++) { for (let i = 0; i < this.crud.data.length; i++) {