Commit 1ffd5540 authored by guang.wu's avatar guang.wu

fix: 修复浏览器兼容问题

parent 02e874cc
......@@ -268,8 +268,9 @@ const CustomTree = forwardRef(props => {
));
// 隐藏所有子树
const handleMouseUp = e => {
const isCur = e?.path?.some(
const handleMouseUp = event => {
const path = event.path || (event.composedPath && event.composedPath());
const isCur = path?.some(
item =>
item.className &&
typeof item.className === 'string' &&
......
import { Form } from '@ant-design/compatible';
import '@ant-design/compatible/assets/index.css';
import { Modal, Input, Select, Cascader, Tag, notification, Tree, Col, Row } from 'antd';
import { Modal, Input, notification } from 'antd';
import React, { useState, useEffect } from 'react';
import { el } from 'date-fns/locale';
import { areaList, getAddTemplate, forbiddenAddress } from '../services';
import CustomTree from '@/components/CustomTree';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment