记录状态1
This commit is contained in:
@@ -135,7 +135,7 @@ export class StateManager {
|
|||||||
/** 记录状态 */
|
/** 记录状态 */
|
||||||
recordState() {
|
recordState() {
|
||||||
if (this.historyIndex.value < this.historyList.value.length - 1) {
|
if (this.historyIndex.value < this.historyList.value.length - 1) {
|
||||||
this.historyList.value.splice(this.historyIndex.value)
|
this.historyList.value.splice(this.historyIndex.value + 1)
|
||||||
}
|
}
|
||||||
const state = {
|
const state = {
|
||||||
nodes: JSON.stringify(this.nodes.value)
|
nodes: JSON.stringify(this.nodes.value)
|
||||||
|
|||||||
Reference in New Issue
Block a user