소스 검색

密码修改

xiatian 4 년 전
부모
커밋
9c609561ee
1개의 변경된 파일2개의 추가작업 그리고 14개의 파일을 삭제
  1. 2 14
      src/modules/portal/views/home/Home.vue

+ 2 - 14
src/modules/portal/views/home/Home.vue

@@ -279,14 +279,8 @@ export default {
     submitForm() {
       this.$refs.passForm.validate(valid => {
         if (valid) {
-          var userId = this.user.userId;
           var password = encodeURIComponent(this.passForm.pass);
-          var url =
-            CORE_API +
-            "/user/password?userId=" +
-            userId +
-            "&password=" +
-            password;
+          var url = CORE_API + "/user/password?password=" + password;
           this.$httpWithMsg.put(url).then(() => {
             this.$notify({
               type: "success",
@@ -304,14 +298,8 @@ export default {
     submitPassWeakForm() {
       this.$refs.passWeakForm.validate(valid => {
         if (valid) {
-          var userId = this.user.userId;
           var password = encodeURIComponent(this.passWeakForm.pass);
-          var url =
-            CORE_API +
-            "/user/password?userId=" +
-            userId +
-            "&password=" +
-            password;
+          var url = CORE_API + "/user/password?password=" + password;
           this.$httpWithMsg.put(url).then(() => {
             this.$notify({
               type: "success",