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