fix:修复表格工具bug
parent
49071b8ac6
commit
6fbee9adad
|
@ -23,7 +23,7 @@ public class #CLASSNAME#Excel
|
||||||
private #CLASSNAME#s _datas;
|
private #CLASSNAME#s _datas;
|
||||||
public #CLASSNAME#s Datas => _datas;
|
public #CLASSNAME#s Datas => _datas;
|
||||||
|
|
||||||
public TestDataExcel()
|
public #CLASSNAME#Excel()
|
||||||
{
|
{
|
||||||
_filePath = $"{Application.streamingAssetsPath}/ExcelData/{_fileName}.json";
|
_filePath = $"{Application.streamingAssetsPath}/ExcelData/{_fileName}.json";
|
||||||
var text = File.ReadAllText(_filePath);
|
var text = File.ReadAllText(_filePath);
|
||||||
|
|
|
@ -339,7 +339,7 @@ namespace ZEditor
|
||||||
|
|
||||||
var json = JsonConvert.SerializeObject(table);
|
var json = JsonConvert.SerializeObject(table);
|
||||||
string newStr = "{" + $"\"{fileName}List\":" + json + "}";
|
string newStr = "{" + $"\"{fileName}List\":" + json + "}";
|
||||||
Debug.Log(newStr);
|
// Debug.Log(newStr);
|
||||||
string filePath = genDataPath + "/" + fileName + ".json";
|
string filePath = genDataPath + "/" + fileName + ".json";
|
||||||
if (!File.Exists(filePath))
|
if (!File.Exists(filePath))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue