@asd20/ui 3.2.561 → 3.2.562

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
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.561",
8
+ "version": "3.2.562",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -214,15 +214,16 @@ export default {
214
214
  },
215
215
  },
216
216
  mounted() {
217
- const currentURL = new URL(window.location.href)
218
- this.returnURL = currentURL.origin
219
217
  this.goBack()
220
218
  },
221
219
  methods: {
222
220
  goBack() {
223
221
  if (typeof window === 'undefined') return
224
- if (document.referrer !== undefined || '') {
222
+ if (document.referrer.startsWith('http' || '/')) {
225
223
  this.returnURL = document.referrer
224
+ } else {
225
+ const currentURL = new URL(window.location.href)
226
+ this.returnURL = currentURL.origin
226
227
  }
227
228
  // window.history.back()
228
229
  // const url = window.location.href