@fy-/fws-vue 0.8.2 → 0.8.4

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.
@@ -47,7 +47,7 @@ const next = () => {
47
47
  history.push({
48
48
  path: history.currentRoute.path,
49
49
  query: newQuery,
50
- hash: props.hash != "" ? props.hash : undefined,
50
+ hash: props.hash != "" ? "#" + props.hash : undefined,
51
51
  });
52
52
  };
53
53
  const prev = () => {
@@ -58,7 +58,7 @@ const prev = () => {
58
58
  history.push({
59
59
  path: history.currentRoute.path,
60
60
  query: newQuery,
61
- hash: props.hash != "" ? props.hash : undefined,
61
+ hash: props.hash != "" ? "#" + props.hash : undefined,
62
62
  });
63
63
  };
64
64
 
@@ -68,7 +68,7 @@ const page = (page: number): RouteLocationRaw => {
68
68
  return {
69
69
  path: history.currentRoute.path,
70
70
  query: newQuery,
71
- hash: props.hash != "" ? props.hash : undefined,
71
+ hash: props.hash != "" ? "#" + props.hash : undefined,
72
72
  };
73
73
  };
74
74
  const currentUrl = computed(() => {
@@ -102,9 +102,7 @@ const checkPageNumber = (page: number = 1) => {
102
102
  pageWatcher.value = watch(
103
103
  () => route.query.page,
104
104
  (v) => {
105
- if (props.hash == "" || route.hash == props.hash) {
106
- eventBus.emit(`${props.id}GoToPage`, v ? v : 1);
107
- }
105
+ eventBus.emit(`${props.id}GoToPage`, v ? v : 1);
108
106
  },
109
107
  );
110
108
  onMounted(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {