leisure-core 0.4.36 → 0.4.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -113,6 +113,12 @@
113
113
  ></el-input>
114
114
  </el-form-item>
115
115
  </el-form>
116
+ <div
117
+ ref="pwdref"
118
+ style="display: flex; justify-content: center; color: red"
119
+ >
120
+ {{ pwdinfo }}
121
+ </div>
116
122
  <div slot="footer">
117
123
  <el-button type="info" @click="cancelChangePwd('ruleForm')"
118
124
  >取 消</el-button
@@ -164,8 +170,8 @@ export default {
164
170
  if (value === "") {
165
171
  callback(new Error("请输入密码"));
166
172
  } else {
167
- if (value.length < 6) {
168
- callback(new Error("密码至少6位"));
173
+ if (value.length < 8) {
174
+ callback(new Error("密码至少8位"));
169
175
  } else {
170
176
  if (this.ruleForm.confirmPwd !== "") {
171
177
  this.$refs.ruleForm.validateField("confirmPwd ");
@@ -210,6 +216,7 @@ export default {
210
216
  contextMenuVisible: false,
211
217
  menuLeft: 0,
212
218
  menuTop: 0,
219
+ pwdinfo: "",
213
220
  };
214
221
  },
215
222
  mounted() {
@@ -318,13 +325,13 @@ export default {
318
325
  });
319
326
  },
320
327
  changePwdAfter(res) {
321
- if (res.data.code == "10000") {
328
+ if (res && res.data && res.data.code == "10000") {
322
329
  this.$message.success("修改密码成功");
323
330
  localStorage.clear();
324
331
  this.$store.commit("setUserInfo", null);
325
332
  this.$router.replace({ path: "/" });
326
333
  } else {
327
- this.$message.error(res.data.info);
334
+ this.pwdinfo = res;
328
335
  }
329
336
  },
330
337
  signout() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.4.36",
3
+ "version": "0.4.37",
4
4
  "description": "leisure-core是leisure-ui-core的简称,是京心数据基于vue2.0开发的一套后台系统框架与js库,包含登录,首页框架等",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",