Skip to content

Commit

Permalink
feat: add toastr hints
Browse files Browse the repository at this point in the history
  • Loading branch information
WTIFS committed Nov 29, 2024
1 parent 65e9a36 commit f256c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function itemModalDirective($translate, toastr, $sce, AppUtil, EventManager, Con
// 格式化
function formatContent() {
if (scope.showJsonError) {
return
return;
}
var raw = scope.item.value;
if (scope.item.type === '3') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ function directive($window, $translate, toastr, AppUtil, EventManager, Permissio
namespace.editText = JSON.stringify(JSON.parse(namespace.editText), null, 4);
}
} catch (e) {
console.log(e)
toastr.error('format content failed: ' + e.message);
}
}

Expand Down

0 comments on commit f256c84

Please sign in to comment.