未验证 提交 89705493 编写于 作者: R RotPublic 提交者: GitHub

fileNames (#1161)

上级 2392f4bc
...@@ -177,7 +177,7 @@ function App() { ...@@ -177,7 +177,7 @@ function App() {
console.log('Graph.current.filess', Graph); console.log('Graph.current.filess', Graph);
const Graphs: any = Graph; const Graphs: any = Graph;
const files: FileList | null = Graphs?.current?.files as FileList; const files: FileList | null = Graphs?.current?.files as FileList;
const name = files[0].name.split('.')[1]; const name = files[0].name.substring(files[0].name.lastIndexOf('.') + 1);
if (name === 'prototxt') { if (name === 'prototxt') {
toast.warning(t('togglegraph:warin-info')); toast.warning(t('togglegraph:warin-info'));
if (file.current) { if (file.current) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册