@ibiz-template/vue3-components 0.7.16 → 0.7.17-alpha.0

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.
@@ -49,9 +49,10 @@ class AppUtil {
49
49
  window.history.replaceState({}, "", href);
50
50
  }
51
51
  await this.router.push(
52
- "/login?ru=".concat(encodeURIComponent(
53
- window.location.hash.replace("#/", "/")
54
- ))
52
+ // `/login?ru=${encodeURIComponent(
53
+ // window.location.hash.replace('#/', '/'),
54
+ // )}`,
55
+ "/login"
55
56
  );
56
57
  ibiz.util.showAppLoading();
57
58
  window.location.reload();
@@ -69,11 +70,11 @@ class AppUtil {
69
70
  * @return {*} {Promise<boolean>}
70
71
  */
71
72
  async changePwd(oldPwd, newPwd, opts) {
72
- let bol = this.validatePwd(oldPwd, newPwd, opts);
73
- if (bol) {
74
- bol = await ibiz.auth.changePwd(oldPwd, newPwd);
73
+ if (this.validatePwd(oldPwd, newPwd, opts)) {
74
+ const result = await ibiz.auth.changePwd(oldPwd, newPwd);
75
+ return result;
75
76
  }
76
- return bol;
77
+ return { ok: false, result: {} };
77
78
  }
78
79
  /**
79
80
  * 切换组织
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.16",
3
+ "version": "0.7.17-alpha.0",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -30,12 +30,12 @@
30
30
  "@floating-ui/dom": "^1.5.3",
31
31
  "@ibiz-template-plugin/ai-chat": "^0.0.5",
32
32
  "@ibiz-template-plugin/gantt": "0.1.4",
33
- "@ibiz-template/core": "0.7.16",
33
+ "@ibiz-template/core": "0.7.17-alpha.0",
34
34
  "@ibiz-template/devtool": "0.0.1-dev.6",
35
- "@ibiz-template/model-helper": "0.7.16",
36
- "@ibiz-template/runtime": "0.7.16",
35
+ "@ibiz-template/model-helper": "0.7.17-alpha.0",
36
+ "@ibiz-template/runtime": "0.7.17-alpha.0",
37
37
  "@ibiz-template/theme": "^0.7.0",
38
- "@ibiz-template/vue3-util": "0.7.16",
38
+ "@ibiz-template/vue3-util": "0.7.17-alpha.0",
39
39
  "@ibiz-template/web-theme": "^1.1.17",
40
40
  "@ibiz/model-core": "^0.1.27",
41
41
  "@imengyu/vue3-context-menu": "^1.3.5",