瀏覽代碼

密码修改

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",