Explorar el Código

remove useless log

main
郑州 hace 3 años
padre
commit
c912d3480d
Se han modificado 6 ficheros con 5 adiciones y 13 borrados
  1. +5
    -5
      src/components/SyncModal/SyncModal.tsx
  2. +0
    -1
      src/pages/login/index.tsx
  3. +0
    -2
      src/services/system.ts
  4. +0
    -1
      src/utils/hooks.ts
  5. +0
    -2
      src/utils/storage.ts
  6. +0
    -2
      src/utils/tool.ts

+ 5
- 5
src/components/SyncModal/SyncModal.tsx Ver fichero

@@ -121,11 +121,11 @@ export default function SyncModal(props: SyncModalProps) {
selectedRowKeys: React.Key[],
selectedRows: DataType[],
) => {
console.log(
`selectedRowKeys: ${selectedRowKeys}`,
'selectedRows: ',
selectedRows,
);
// console.log(
// `selectedRowKeys: ${selectedRowKeys}`,
// 'selectedRows: ',
// selectedRows,
// );
setSelectedKeys(selectedRowKeys as string[]);
},
selectedRowKeys: selectedKeys,


+ 0
- 1
src/pages/login/index.tsx Ver fichero

@@ -169,7 +169,6 @@ function RegisterModal(props: RegisterModalProps) {
try {
const fields = await form.validateFields();
const params = firstCharToUpperCase(fields);
console.log(params);
const res = await fetchApi('company/registerCompany', params);
handleRequest(res).success(() => {
message.success('注册成功');


+ 0
- 2
src/services/system.ts Ver fichero

@@ -3,8 +3,6 @@ import { isClient } from '@/utils/tool';
import { DATA } from './API';
import { sendSocketMessage } from './socket';

console.log('system initial: ????');

const noop = () => {};
const safeCall = <T>(f: T, repalceF = noop) => (isClient ? f : repalceF);



+ 0
- 1
src/utils/hooks.ts Ver fichero

@@ -145,7 +145,6 @@ export function useNotificationMessages() {
}, 500),
[],
);
console.log(list);
useEffect(() => {
msgNotifySubject.addObserver(fetchMessages);
return () => {


+ 0
- 2
src/utils/storage.ts Ver fichero

@@ -36,13 +36,11 @@ const storage = {
};

if (isClient && window.addIpcRendererListener) {
console.log('try to reload local data');
storage.clear();
window.addIpcRendererListener(
'initialStorageData',
(_, hash: { keyList?: string[]; [key: string]: any }) => {
const kList = hash.keyList || [];
console.log('reload data:', hash);
kList.forEach((key: string) => {
keepSaveKeyMap.set(key, true);
storage.set(key, hash[key]);


+ 0
- 2
src/utils/tool.ts Ver fichero

@@ -1,5 +1,3 @@
console.log('initial tool.js');

export const isClient = !!window.ipcRenderer; // process.env.IS_CLIENT;

export function firstCharToLowerCase(obj: any) {


Cargando…
Cancelar
Guardar