wlwy-package 3.2.2 → 3.2.3-httpOnlyCookie.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.
@@ -5,7 +5,7 @@ export declare class service {
5
5
  private readonly interceptors?;
6
6
  private readonly showLoading?;
7
7
  private spinning?;
8
- private readonly tokenKey;
8
+ private readonly systemType;
9
9
  constructor(config: ServiceOptions);
10
10
  request<T = any>(config: RequestConfig, spinning?: boolean): Promise<AxiosResponse<T>>;
11
11
  options<T = any>(url: string, config: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
@@ -18,4 +18,4 @@ export declare class service {
18
18
  EXPORT<T = any>(url: string, data?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
19
19
  }
20
20
  export default service;
21
- export type ServiceType = Omit<InstanceType<typeof service>, 'interceptors' | 'showLoading' | 'tokenKey' | 'config' | 'instance' | 'spinning'>;
21
+ export type ServiceType = Omit<InstanceType<typeof service>, 'interceptors' | 'showLoading' | 'systemType' | 'config' | 'instance' | 'spinning'>;
@@ -1,7 +1,10 @@
1
1
  import type { AxiosError, AxiosRequestConfig, AxiosResponse, InternalAxiosRequestConfig } from 'axios';
2
2
  export type TokenKeys = 'ttoken' | 'ctoken' | 'ptoken';
3
+ export type SystemType = 'P' | 'C' | 'T' | 'S';
3
4
  export interface ServiceOptions extends RequestConfig {
5
+ /** @deprecated HttpOnly Cookie模式下运行时不再读取tokenKey */
4
6
  tokenKey?: TokenKeys;
7
+ systemType?: SystemType;
5
8
  interceptors?: RequestInterceptors;
6
9
  showLoading?: boolean;
7
10
  }
@@ -14,9 +17,9 @@ export type RequestInterceptors = {
14
17
  export interface RequestConfig extends Omit<AxiosRequestConfig, 'headers'> {
15
18
  headers?: AxiosRequestConfig['headers'] & {
16
19
  OriginalResponse?: boolean;
17
- Satoken?: string;
18
20
  Language?: string;
19
21
  'System-Type'?: string;
22
+ 'X-CSRF-Protection'?: string;
20
23
  timezone?: string;
21
24
  warehouse_id?: string;
22
25
  };
@@ -42,7 +42,7 @@ export type FormItemLabelTooltipProps = {
42
42
  /**
43
43
  * w-form-item 组件属性
44
44
  */
45
- export interface WFormItemProps extends WFormColProps, Pick<FormItemProps, 'name' | 'labelCol' | 'wrapperCol'>, FormItemLabelTooltipProps {
45
+ export interface WFormItemProps extends WFormColProps, Pick<FormItemProps, 'name' | 'labelCol' | 'wrapperCol' | 'colon'>, FormItemLabelTooltipProps {
46
46
  /**
47
47
  * item Lable名称
48
48
  */
@@ -2,12 +2,12 @@ import { h, reactive, toRefs, markRaw, ref, computed, unref, nextTick, watch, on
2
2
  import { App, message, theme, Tooltip, Switch, ConfigProvider, Spin, Button, Card, Row, DatePicker, Descriptions, Modal, Select, Statistic, Form, UploadDragger, Upload, Space, Col, FormItem, Input, InputPassword, InputNumber, Textarea, CheckboxGroup, Checkbox, RadioGroup, RangePicker, TimePicker, InputGroup, Image as Image$1, Dropdown, Menu, Progress, PageHeader, MenuItem, Tabs, TabPane, SubMenu, LayoutSider, LayoutFooter, Badge, Drawer, Alert, List, ListItem, LayoutHeader, Avatar, MenuDivider, Skeleton, Layout, LayoutContent } from "ant-design-vue";
3
3
  import zhCn from "ant-design-vue/es/locale/zh_CN.js";
4
4
  import enUs from "ant-design-vue/es/locale/en_US.js";
5
- import { u as useI18n, a as useCommonStore, A as API, c as config, b as useLocale, d as useTabsNavStoreWithOut, e as useUserPermissionStoreWithOut, f as useDictStoreWithOut, _ as _sfc_main$19, g as useCommonStoreWithOut, h as useFormStorage, i as formatCellValue, k as kebabToCamel, j as useFormItemProps, p as pickMultiple, l as isExternalLink, n as newWin, m as useLanguageStoreWithOut, o as _sfc_main$1a, s as setConfig } from "./index-D4mQXwMj.js";
6
- import { D, E, r, t, C, z, x, y, B, q, v, w } from "./index-D4mQXwMj.js";
5
+ import { u as useI18n, a as useCommonStore, A as API, c as config, b as useLocale, d as useTabsNavStoreWithOut, e as useUserPermissionStoreWithOut, f as useDictStoreWithOut, _ as _sfc_main$19, g as useCommonStoreWithOut, h as useFormStorage, i as formatCellValue, k as kebabToCamel, j as useFormItemProps, p as pickMultiple, l as isExternalLink, n as newWin, m as useLanguageStoreWithOut, o as _sfc_main$1a, s as setConfig } from "./index-DtK1XQdW.js";
6
+ import { D, E, r, t, C, z, x, y, B, q, v, w } from "./index-DtK1XQdW.js";
7
7
  import { clone, debounce, omit, get, pick, merge, isEmpty, set } from "xe-utils";
8
8
  import { RouterLink, useRouter } from "vue-router";
9
- import { _ as _export_sfc } from "./index-DbAXWdHe.js";
10
- import { E as E2 } from "./index-DbAXWdHe.js";
9
+ import { _ as _export_sfc } from "./index-BPPIVUm2.js";
10
+ import { E as E2 } from "./index-BPPIVUm2.js";
11
11
  import { DownOutlined, UpOutlined } from "@ant-design/icons-vue";
12
12
  import * as VxeUITable from "vxe-table";
13
13
  import { VxeColumn, VxeUI, VxeToolbar, VxeTable } from "vxe-table";
@@ -4416,6 +4416,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
4416
4416
  name: {},
4417
4417
  labelCol: {},
4418
4418
  wrapperCol: {},
4419
+ colon: { type: Boolean },
4419
4420
  labelTooltip: {},
4420
4421
  labelTooltipIcon: { default: "QuestionCircleOutlined" }
4421
4422
  },
@@ -11105,7 +11106,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
11105
11106
  },
11106
11107
  setup(__props) {
11107
11108
  useCssVars((_ctx) => ({
11108
- "e8971a06": unref(token).colorPrimary
11109
+ "da3013c6": unref(token).colorPrimary
11109
11110
  }));
11110
11111
  const { t: t3 } = useI18n();
11111
11112
  const defaultsOption = [
@@ -11141,7 +11142,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
11141
11142
  Modal.confirm({
11142
11143
  title: t3("lang.com_msg_2684"),
11143
11144
  onOk: async () => {
11144
- const { success } = await API.GET("/auth/cas/logout");
11145
+ const { success } = await API.POST("/auth/cas/logout");
11145
11146
  if (success) {
11146
11147
  API.GET("/auth/cas/isLogin");
11147
11148
  }
@@ -11270,7 +11271,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
11270
11271
  };
11271
11272
  }
11272
11273
  });
11273
- const WLayoutHeader = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-69e34512"]]);
11274
+ const WLayoutHeader = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-a500ba00"]]);
11274
11275
  const _hoisted_1$1 = { class: "skeleton-list" };
11275
11276
  const _hoisted_2$1 = { class: "search-form" };
11276
11277
  const _hoisted_3 = { class: "label" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wlwy-package",
3
- "version": "3.2.2",
3
+ "version": "3.2.3-httpOnlyCookie.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/wlwy-package.es.js",
@@ -92,4 +92,4 @@
92
92
  "git add"
93
93
  ]
94
94
  }
95
- }
95
+ }