refactor: allow chinese layer names
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { createStore } from 'solid-js/store';
|
||||
import { createStore } from 'solid-js/store';
|
||||
import { calculateDimensions } from './dimensions';
|
||||
import { loadCSV, CSV } from '../../utils/csv-loader';
|
||||
import { initLayerConfigs, formatLayers, initLayerConfigsForSide } from './layer-parser';
|
||||
@@ -321,7 +321,7 @@ export function createDeckStore(
|
||||
|
||||
if (data.length === 0) {
|
||||
setState({
|
||||
error: 'CSV 文件为空或格式不正确',
|
||||
error: `CSV ${path} 文件为空或格式不正确`,
|
||||
isLoading: false
|
||||
});
|
||||
return;
|
||||
@@ -337,7 +337,7 @@ export function createDeckStore(
|
||||
updateDimensions();
|
||||
} catch (err) {
|
||||
setState({
|
||||
error: `加载 CSV 失败:${err instanceof Error ? err.message : '未知错误'}`,
|
||||
error: `加载 CSV ${path} 失败:${err instanceof Error ? err.message : '未知错误'}`,
|
||||
isLoading: false
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user