diff --git a/api/user.js b/api/user.js
index ef7d32a..b9045c3 100644
--- a/api/user.js
+++ b/api/user.js
@@ -63,7 +63,7 @@ export function register(data) {
*/
export function registerReset(data) {
return request.post('/register/reset', data, {
- login: false,
+ login: true,
})
}
diff --git a/pages/user/ChangePassword/index.vue b/pages/user/ChangePassword/index.vue
index 0d65353..47d7ac9 100644
--- a/pages/user/ChangePassword/index.vue
+++ b/pages/user/ChangePassword/index.vue
@@ -16,7 +16,7 @@
-
+
确认修改
@@ -82,13 +82,24 @@ export default {
password: that.password,
})
.then(res => {
- uni.showToast({
- title: res.msg,
- icon: 'none',
- duration: 2000,
- })
-
- // that.$yrouter.push({ path: "/pages/user/Login/index" });
+ uni.showToast({
+ title: res.msg,
+ icon: 'none',
+ duration: 2000,
+ })
+ this.$yrouter.replace({
+ path: "/pages/user/Login/index",
+ query: {},
+ });
+ // getLogout()
+ // .then((res) => {
+ // this.$store.commit("logout");
+ // this.$yrouter.replace({
+ // path: "/pages/user/Login/index",
+ // query: {},
+ // });
+ // })
+ // .catch((err) => {});
})
.catch(res => {
uni.showToast({
@@ -134,11 +145,24 @@ export default {
diff --git a/pages/user/Login/index.vue b/pages/user/Login/index.vue
index 8f4aebc..6086581 100644
--- a/pages/user/Login/index.vue
+++ b/pages/user/Login/index.vue
@@ -9,7 +9,7 @@
保存修改