Pagesで変数削除するとそれ以外の変数が複製されるみたいなバグを修正

This commit is contained in:
syuilo 2020-12-08 00:32:00 +09:00
parent d58ae601f7
commit c2d79450ea
1 changed files with 1 additions and 6 deletions

View File

@ -342,12 +342,7 @@ export default defineComponent({
}, },
removeVariable(v) { removeVariable(v) {
const i = this.variables.findIndex(x => x.name === v.name); this.variables = this.variables.filter(x => x.name !== v.name);
const newValue = [
...this.variables.slice(0, i),
...this.variables.slice(i + 1)
];
this.variables = newValue;
}, },
getPageBlockList() { getPageBlockList() {