✨ feat(颜色取样|取色查找|样品对比): 已完成颜色对比|取色查找|样品对比100%】
This commit is contained in:
@@ -14,7 +14,7 @@ interface params {
|
||||
}
|
||||
const Context = React.createContext<params | unknown>(null)
|
||||
|
||||
interface stateStype {
|
||||
export interface BluetoothStateType {
|
||||
listeners: any
|
||||
discovering: boolean
|
||||
available: boolean
|
||||
@@ -39,7 +39,7 @@ interface stateStype {
|
||||
deviceLab: any
|
||||
}
|
||||
|
||||
let stateObj: stateStype = {
|
||||
let stateObj: BluetoothStateType = {
|
||||
/** 事件监听器 */
|
||||
listeners: new Set(),
|
||||
/** 正在扫描设备 */
|
||||
|
||||
+8
-6
@@ -8,16 +8,16 @@ import useLoginRequest from './useLoginRequest'
|
||||
|
||||
type Params = {
|
||||
code: string | null
|
||||
success: true | false
|
||||
success: boolean
|
||||
data: any
|
||||
msg: string
|
||||
loading: true | false
|
||||
loading: boolean | null
|
||||
error: any
|
||||
query: any
|
||||
filter: any
|
||||
sort: any
|
||||
total: number
|
||||
multiple: true | false // 请求多次
|
||||
multiple: boolean // 请求多次
|
||||
count: number // 第几次请求
|
||||
token: string // token
|
||||
page?: number
|
||||
@@ -31,9 +31,9 @@ type option = {
|
||||
data?: OptionData
|
||||
page?: number
|
||||
pageSize?: number
|
||||
pagination?: true | false
|
||||
pagination?: boolean
|
||||
base_url?: string
|
||||
apiMsgStatus?: true | false
|
||||
apiMsgStatus?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -110,11 +110,13 @@ export const useRequest = (
|
||||
success: false, // 请求是否成功
|
||||
data: {},
|
||||
msg: '',
|
||||
loading: true,
|
||||
loading: null,
|
||||
error: null,
|
||||
query: {},
|
||||
filter: null,
|
||||
sort: '',
|
||||
page: options.page || 1,
|
||||
pageSize: options.pageSize || 24,
|
||||
total: 0,
|
||||
multiple: true, // 请求多次
|
||||
count: 0, // 第几次请求
|
||||
|
||||
Reference in New Issue
Block a user