gomtm 0.0.270 → 0.0.271

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.
@@ -95,9 +95,12 @@ function useListView() {
95
95
  }
96
96
  function CommonListView() {
97
97
  const listView = useListView();
98
+ console.log("listView.params", listView.params);
98
99
  const listQuery = useSuspenseInfiniteQuery(listView.methodList, {
99
- Params: {
100
- q: listView.params.q
100
+ params: {
101
+ params: {
102
+ q: listView.params.q
103
+ }
101
104
  },
102
105
  pagination: {
103
106
  page: 1
@@ -114,7 +117,6 @@ function CommonListView() {
114
117
  return null;
115
118
  }
116
119
  return /* @__PURE__ */ jsxs("div", { className: "relative w-full", children: [
117
- JSON.stringify(listView.params, null, 2),
118
120
  /* @__PURE__ */ jsx(
119
121
  "div",
120
122
  {
@@ -111,7 +111,7 @@ const gomtmFetcher = (initGlobal) => {
111
111
  }, (initGlobal == null ? void 0 : initGlobal.cookieStr) && { "Cookie": initGlobal == null ? void 0 : initGlobal.cookieStr })
112
112
  });
113
113
  let fetcher = fetch;
114
- req.enableCache = true;
114
+ req.enableCache = false;
115
115
  if (req.enableCache) {
116
116
  fetcher = fetchMiddleWithCache(fetch);
117
117
  }
@@ -1,5 +1,5 @@
1
- export declare function isRoleMatch(currentRoles: string[], allowRoles?: string[]): boolean;
2
1
  import { MyJWTPayload } from "../lib/auth/jwt";
2
+ export declare function isRoleMatch(currentRoles: string[], allowRoles?: string[]): boolean;
3
3
  export declare function useAuth(): {
4
4
  auth: MyJWTPayload | null;
5
5
  userId: string | undefined;
@@ -1,4 +1,7 @@
1
1
  "use client";
2
+ import React, { useMemo } from "react";
3
+ import { useSuspenseQuery } from "../connectquery";
4
+ import { userinfo } from "../gomtmpb/mtm/sppb/mtm-MtmService_connectquery";
2
5
  function isRoleMatch(currentRoles, allowRoles) {
3
6
  if (!currentRoles) {
4
7
  return true;
@@ -14,9 +17,6 @@ function isRoleMatch(currentRoles, allowRoles) {
14
17
  }
15
18
  return false;
16
19
  }
17
- import React, { useMemo } from "react";
18
- import { useSuspenseQuery } from "../connectquery";
19
- import { userinfo } from "../gomtmpb/mtm/sppb/mtm-MtmService_connectquery";
20
20
  function useAuth() {
21
21
  const [auth, setAuth] = React.useState(null);
22
22
  const isAdmin = useMemo(() => {