From cd510b43b1ef85202ddf9018271aaadf695f3c8d Mon Sep 17 00:00:00 2001 From: hewenqiang <1527468660@qq.com> Date: 星期二, 25 一月 2022 17:17:06 +0800 Subject: [PATCH] fix 优化登录、注册校验方式,在接口通过@Validated进行数据基础校验,以及服务执行到异常后,抛出异常结束方法执行(减少if-else嵌套)。 --- ruoyi-ui/src/views/system/user/authRole.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/views/system/user/authRole.vue b/ruoyi-ui/src/views/system/user/authRole.vue index dabdc27..7abe26a 100644 --- a/ruoyi-ui/src/views/system/user/authRole.vue +++ b/ruoyi-ui/src/views/system/user/authRole.vue @@ -9,7 +9,7 @@ </el-form-item> </el-col> <el-col :span="8" :offset="2"> - <el-form-item label="鐧诲綍璐﹀彿" prop="phonenumber"> + <el-form-item label="鐧诲綍璐﹀彿" prop="userName"> <el-input v-model="form.userName" disabled /> </el-form-item> </el-col> @@ -33,7 +33,7 @@ </template> </el-table-column> </el-table> - + <pagination v-show="total>0" :total="total" :page.sync="pageNum" :limit.sync="pageSize" /> <el-form label-width="100px"> @@ -109,9 +109,9 @@ }, /** 鍏抽棴鎸夐挳 */ close() { - this.$store.dispatch("tagsView/delView", this.$route); - this.$router.push({ path: "/system/user" }); + const obj = { path: "/system/user" }; + this.$tab.closeOpenPage(obj); }, }, }; -</script> \ No newline at end of file +</script> -- Gitblit v1.9.3