Skip to content

Commit

Permalink
chore(playground): 恢复dsl本地存储的key
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Feb 27, 2025
1 parent 4026c0c commit 94d0ed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playground/src/pages/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ const moveableOptions = (config?: CustomizeMoveableOptionsCallbackConfig): Movea
const save = () => {
localStorage.setItem(
'magicDSL2',
'magicDSL',
serialize(toRaw(value.value), {
space: 2,
unsafe: true,
Expand All @@ -290,7 +290,7 @@ asyncLoadJs(`${VITE_ENTRY_PATH}/ds-value/index.umd.cjs`).then(() => {
try {
// eslint-disable-next-line no-eval
const magicDSL = eval(`(${localStorage.getItem('magicDSL2')})`);
const magicDSL = eval(`(${localStorage.getItem('magicDSL')})`);
if (!magicDSL) {
save();
} else {
Expand Down

0 comments on commit 94d0ed1

Please sign in to comment.