前端迁移

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:
# 认证
- /login
- /auth/login
- /auth/code
- /auth/logout
@@ -94,3 +95,4 @@ sa-token:
is-print: false
# token 前缀
token-prefix: Bearer

View File

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