fix Properties update
This commit is contained in:
1 parent
8177424594
commit
31b3b7404f
2 files changed
+11
-4
No files matched your search
@@ -39,7 +39,7 @@ interface BehaviorNodeTypeModel {
|
|||||||
```shell
|
```shell
|
||||||
npm install # 安装依赖
|
npm install # 安装依赖
|
||||||
npm start # 运行测试
|
npm start # 运行测试
|
||||||
npm run build # 编译exe可执行文件
|
npm run dist # 编译exe可执行文件
|
||||||
```
|
```
|
||||||
|
|
||||||
## 技术栈
|
## 技术栈
|
||||||
@@ -53,12 +53,9 @@ npm run build # 编译exe可执行文件
|
|||||||
+ js/ts版本 计划中。
|
+ js/ts版本 计划中。
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
+ 复制粘贴功能(跨工作区)
|
|
||||||
+ 历史记录(撤销/恢复)
|
+ 历史记录(撤销/恢复)
|
||||||
+ 资源面板支持树型结构
|
+ 资源面板支持树型结构
|
||||||
+ 快捷键功能
|
|
||||||
+ 右键菜单
|
+ 右键菜单
|
||||||
+ 联调功能
|
|
||||||
|
|
||||||
## About
|
## About
|
||||||
目前编辑器还处于非常简陋的阶段,有问题可以联系作者(QQ1013299930),本项目将长期维护,望前端大佬们多提点~
|
目前编辑器还处于非常简陋的阶段,有问题可以联系作者(QQ1013299930),本项目将长期维护,望前端大佬们多提点~
|
||||||
@@ -175,6 +175,16 @@ export default class Properties extends Component<PropertiesProps> {
|
|||||||
this.forceUpdate();
|
this.forceUpdate();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ipcRenderer.on(MainEventType.OPEN_DIR, (event: any, workdir: any, workspace: string) => {
|
||||||
|
console.log("prop on open workspace", workspace);
|
||||||
|
this.updateRoot();
|
||||||
|
this.forceUpdate();
|
||||||
|
});
|
||||||
|
|
||||||
|
this.updateRoot();
|
||||||
|
}
|
||||||
|
|
||||||
|
updateRoot() {
|
||||||
var workdir = this.props.workdir;
|
var workdir = this.props.workdir;
|
||||||
if (!workdir || workdir === "") {
|
if (!workdir || workdir === "") {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user