前端迁移
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user