Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Apr 19, 2024
1 parent 53bfea9 commit 8a40454
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/web/src/components/SourceDebug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ const appendDebugMsg = (msg) => {
};
const startDebug = async () => {
printDebug.value = "";
await API.saveSource(store.currentSource);
try {
await API.saveSource(store.currentSource);
} catch (e) {
store.debugFinish()
throw e
}
API.debug(
store.currentSourceUrl,
searchKey.value || store.searchKey,
Expand Down

0 comments on commit 8a40454

Please sign in to comment.