adata-ui 0.2.9 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -34,6 +34,8 @@
34
34
  class="menu__wrapper menu__items"
35
35
  :class="{ active: item.key === activeTabKey }"
36
36
  :href="item[mode]"
37
+ @click="goToAnotherModule(item[mode])"
38
+ onclick="return false;"
37
39
  >
38
40
  {{ item.name }}
39
41
  </a>
@@ -589,6 +591,12 @@ export default {
589
591
  this.notificationShow()
590
592
  },
591
593
  methods: {
594
+ goToAnotherModule(url) {
595
+ if(!location.href.includes(url)) {
596
+ this.$emit("changeModule");
597
+ }
598
+ window.open(url, "_self");
599
+ },
592
600
  goAuth() {
593
601
  const fullPath = encodeURIComponent(window.location.toString());
594
602
  if (window) {