From 838eb134e5a48003141e2ea292e91947a7f7ea6b Mon Sep 17 00:00:00 2001 From: wintel Date: Sat, 20 Jul 2024 21:26:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E5=8E=BBvu?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/UserManager/ChangePassword.cshtml | 10 +++---- OpenAuth.Mvc/wwwroot/userJs/changePwd.js | 26 ++++--------------- 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/OpenAuth.Mvc/Views/UserManager/ChangePassword.cshtml b/OpenAuth.Mvc/Views/UserManager/ChangePassword.cshtml index f07d1f81..d25b078b 100644 --- a/OpenAuth.Mvc/Views/UserManager/ChangePassword.cshtml +++ b/OpenAuth.Mvc/Views/UserManager/ChangePassword.cshtml @@ -4,19 +4,19 @@ } -
+
-
-
@@ -24,7 +24,7 @@
-
@@ -39,4 +39,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/OpenAuth.Mvc/wwwroot/userJs/changePwd.js b/OpenAuth.Mvc/wwwroot/userJs/changePwd.js index f21f5987..0c480560 100644 --- a/OpenAuth.Mvc/wwwroot/userJs/changePwd.js +++ b/OpenAuth.Mvc/wwwroot/userJs/changePwd.js @@ -1,6 +1,6 @@ layui.config({ base: "/js/" -}).use(['form','vue', 'ztree', 'layer', 'jquery', 'table','droptree','openauth','utils'], function () { +}).use(['form','ztree', 'layer', 'jquery', 'table','droptree','openauth','utils'], function () { var form = layui.form, layer = layui.layer, $ = layui.jquery; @@ -8,26 +8,10 @@ layui.config({ var openauth = layui.openauth; var toplayer = (top == undefined || top.layer === undefined) ? layer : top.layer; //顶层的LAYER - var vm = new Vue({ - el: "#formEdit", - data() { - return { - tmp: { - Account: '', - Password: '', - ConfirmPassword: '', - } - } - }, - mounted() { - var _this = this; - $.get('/UserSession/GetUserName', - function (data) { - _this.tmp.Account = data; - }); - form.render(); - } - }); + $.get('/UserSession/GetUserName', + function (data) { + form.val("formEdit", {Account:data}); + }); var url = "/UserManager/ChangePassword"; //提交数据