Skip to content

Commit

Permalink
revert: 撤回一部分代码编辑器修改
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Mar 18, 2024
1 parent dd080dc commit 6f184ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.185",
"version": "2.14.187",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
15 changes: 8 additions & 7 deletions src/views/editor/components/Script.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</button>
</span> -->

<button
<!-- <button
class="open-editor-btn"
v-if="value.mode === 'script'"
@click="pushEditCode"
Expand All @@ -58,7 +58,7 @@
<font-awesome-icon icon="fa-solid fa-code" />
前往脚本编辑器
</span>
</button>
</button> -->
</div>
<!-- <nut-textarea
v-model="value.content"
Expand Down Expand Up @@ -207,11 +207,12 @@ onMounted(() => {
if (item.args.mode === "script") {
value.code = item.args.content;
console.log('item',item.id , id )
if (cmStore.EditCode[id] != "") {
item.args.content = cmStore.EditCode;
value.code = cmStore.EditCode[id];
cmStore.setEditCode(id,"");
}
// TODO: 不知道干啥的 刷新后首次打开订阅编辑时才会执行, 会导致脚本操作中的代码丢失
// if (cmStore.EditCode[id] != "") {
// item.args.content = cmStore.EditCode;
// value.code = cmStore.EditCode[id];
// cmStore.setEditCode(id,"");
// }
} else {
value.content = item.args.content;
}
Expand Down

0 comments on commit 6f184ea

Please sign in to comment.