From 81791cfeac9e8db1233fd6dd4e24bfd9e23667cc Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 18 Oct 2022 11:30:10 +0800 Subject: [PATCH] feat: add operation exception toasts for loading plugin resources and login (#645) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind feature /milestone 2.0 #### What this PR does / why we need it: 为登录操作和加载插件资源添加异常提示。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/2534 #### Screenshots: image image #### Special notes for your reviewer: 目前还没有处理全局的接口请求异常,需要后端修改异常返回结构。 /cc @halo-dev/sig-halo-console #### Does this PR introduce a user-facing change? ```release-note 为登录操作和加载插件资源添加异常提示。 ``` --- .../components/src/components/dialog/Dialog.story.vue | 5 +++-- src/main.ts | 9 ++++++--- src/modules/system/users/Login.vue | 9 +++++++-- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/packages/components/src/components/dialog/Dialog.story.vue b/packages/components/src/components/dialog/Dialog.story.vue index 985016d36..c1554f1f4 100644 --- a/packages/components/src/components/dialog/Dialog.story.vue +++ b/packages/components/src/components/dialog/Dialog.story.vue @@ -1,5 +1,6 @@