@saooti/octopus-sdk 33.2.3 → 33.2.5

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": "@saooti/octopus-sdk",
3
- "version": "33.2.3",
3
+ "version": "33.2.5",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -24,6 +24,7 @@
24
24
  <a
25
25
  class="octopus-dropdown-item"
26
26
  href="/sso/login"
27
+ realLink="true"
27
28
  >
28
29
  {{ $t('Login') }}
29
30
  </a>
@@ -59,6 +60,7 @@
59
60
  class="octopus-dropdown-item"
60
61
  rel="noopener"
61
62
  target="_blank"
63
+ realLink="true"
62
64
  >
63
65
  {{ helpLink.title }}
64
66
  </a>
@@ -68,6 +70,7 @@
68
70
  <a
69
71
  class="octopus-dropdown-item"
70
72
  href="/sso/logout"
73
+ realLink="true"
71
74
  >
72
75
  {{ $t('Logout') }}
73
76
  </a>
@@ -107,10 +107,11 @@ export default defineComponent({
107
107
  if (null!==parent && parent.contains(myElement)) {
108
108
  if(null!==myElement.classList && myElement.classList.contains('octopus-dropdown-item')){
109
109
  if((myElement as HTMLAnchorElement).href ?? false){
110
- if((myElement as HTMLAnchorElement).host !== window.location.host){
111
- return;
110
+ if("true"===myElement.getAttribute('reallink')){
111
+ await myElement.click();
112
+ }else{
113
+ await this.$router.push((myElement as any).pathname);
112
114
  }
113
- await this.$router.push((myElement as any).pathname);
114
115
  }
115
116
  this.$nextTick(() => {
116
117
  this.isClick = false;
@@ -135,7 +135,6 @@ export default defineComponent({
135
135
  align-items: center;
136
136
  justify-content: flex-end;
137
137
  padding: 1rem;
138
- flex-wrap
139
138
  button{
140
139
  margin: 0.1rem;
141
140
  }